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

Plasma

  • sources
  • kde-4.12
  • kdelibs
  • plasma
  • remote
accessmanager.h
Go to the documentation of this file.
1 /*
2  * Copyright 2009 by Rob Scheepmaker <r.scheepmaker@student.utwente.nl>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef PLASMA_ACCESSMANAGER_H
21 #define PLASMA_ACCESSMANAGER_H
22 
23 #include "accessappletjob.h"
24 #include "packagemetadata.h"
25 #include "plasma_export.h"
26 
27 #include <QtCore/QList>
28 #include <QtCore/QObject>
29 #include <QtCore/QString>
30 
31 #include <kdebug.h>
32 
33 class QString;
34 class KUrl;
35 
36 namespace Plasma
37 {
38 
39 class AccessManagerPrivate;
40 class ServiceAccessJob;
41 
54 class PLASMA_EXPORT AccessManager : public QObject
55 {
56  Q_OBJECT
57 
58  public:
62  static AccessManager *self();
63 
72  AccessAppletJob *accessRemoteApplet(const KUrl &location) const;
73 
79  QList<PackageMetadata> remoteApplets() const;
80 
84  static QStringList supportedProtocols();
85 
86  Q_SIGNALS:
90  void finished(Plasma::AccessAppletJob *);
91 
95  void remoteAppletAnnounced(Plasma::PackageMetadata metadata);
96 
100  void remoteAppletUnannounced(Plasma::PackageMetadata metadata);
101 
102  private:
103  AccessManager();
104  ~AccessManager();
105 
106  AccessManagerPrivate * const d;
107 
108  Q_PRIVATE_SLOT(d, void slotJobFinished(KJob*))
109  Q_PRIVATE_SLOT(d, void slotAddService(DNSSD::RemoteService::Ptr service))
110  Q_PRIVATE_SLOT(d, void slotRemoveService(DNSSD::RemoteService::Ptr service))
111 
112  friend class AccessManagerPrivate;
113  friend class AccessManagerSingleton;
114 };
115 } // Plasma namespace
116 
117 #endif
118 
packagemetadata.h
QObject
Plasma::AccessManager
Allows access to remote Plasma::Applet classes.
Definition: accessmanager.h:54
Plasma::AccessAppletJob
This class is used for asynchronously accessing an applet published on a remote system.
Definition: accessappletjob.h:42
Plasma::PackageMetadata
Provides metadata for a Package.
Definition: packagemetadata.h:39
accessappletjob.h
KJob
plasma_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Plasma

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal