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

Nepomuk-Core

  • KTp
service-availability-checker.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 Collabora Ltd. <info@collabora.com>
3  @author George Kiagiadakis <george.kiagiadakis@collabora.com>
4 
5  This library is free software; you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published
7  by the Free Software Foundation; either version 2.1 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef SERVICE_AVAILABILITY_CHECKER_H
19 #define SERVICE_AVAILABILITY_CHECKER_H
20 
21 #include <QtCore/QObject>
22 
23 #include <KTp/ktp-export.h>
24 
25 class QDBusPendingCallWatcher;
26 
27 namespace KTp
28 {
29 
34 class KTP_EXPORT ServiceAvailabilityChecker : public QObject
35 {
36  Q_OBJECT
37 public:
38  explicit ServiceAvailabilityChecker(const QString & serviceName, QObject *parent = 0);
39  virtual ~ServiceAvailabilityChecker();
40 
41  bool isAvailable() const;
42 
43 private Q_SLOTS:
44  void introspect();
45  void onCallFinished(QDBusPendingCallWatcher *watcher);
46  void onServiceOwnerChanged(const QString & service,
47  const QString & oldOwner,
48  const QString & newOwner);
49 
50 private:
51  struct Private;
52  Private * const d;
53 };
54 
55 }
56 
57 #endif // SERVICE_AVAILABILITY_CHECKER_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Mar 22 2013 10:58:52 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktp-common-internals API Reference

Skip menu "ktp-common-internals API Reference"
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