• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

Plasma

accessmanager.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2009 by Rob Scheepmaker <r.scheepmaker@student.utwente.nl>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor,
00017  * Boston, MA  02110-1301  USA
00018  */
00019 
00020 #ifndef PLASMA_ACCESSMANAGER_H
00021 #define PLASMA_ACCESSMANAGER_H
00022 
00023 #include "accessappletjob.h"
00024 #include "packagemetadata.h"
00025 #include "plasma_export.h"
00026 
00027 #include <QtCore/QList>
00028 #include <QtCore/QObject>
00029 #include <QtCore/QString>
00030 
00031 #include <kdebug.h>
00032 
00033 class QString;
00034 class KUrl;
00035 
00036 namespace Plasma
00037 {
00038 
00039 class AccessManagerPrivate;
00040 class ServiceAccessJob;
00041 
00054 class PLASMA_EXPORT AccessManager : public QObject
00055 {
00056     Q_OBJECT
00057 
00058     public:
00062         static AccessManager *self();
00063 
00072         AccessAppletJob *accessRemoteApplet(const KUrl &location) const;
00073 
00079         QList<PackageMetadata> remoteApplets() const;
00080 
00084         static QStringList supportedProtocols();
00085 
00086     Q_SIGNALS:
00090         void finished(Plasma::AccessAppletJob *);
00091 
00095         void remoteAppletAnnounced(Plasma::PackageMetadata metadata);
00096 
00100         void remoteAppletUnannounced(Plasma::PackageMetadata metadata);
00101 
00102     private:
00103         AccessManager();
00104         ~AccessManager();
00105 
00106         AccessManagerPrivate * const d;
00107 
00108         Q_PRIVATE_SLOT(d, void slotJobFinished(KJob*))
00109         Q_PRIVATE_SLOT(d, void slotAddService(DNSSD::RemoteService::Ptr service))
00110         Q_PRIVATE_SLOT(d, void slotRemoveService(DNSSD::RemoteService::Ptr service))
00111 
00112         friend class AccessManagerPrivate;
00113         friend class AccessManagerSingleton;
00114 };
00115 } // Plasma namespace
00116 
00117 #endif
00118 

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal