~sil2100/unity-2d/precise-security

« back to all changes in this revision

Viewing changes to panel/applets/indicator/indicatorservicemanager.h

  • Committer: Aurelien Gateau
  • Date: 2010-11-10 08:57:29 UTC
  • mto: This revision was merged to the branch mainline in revision 284.
  • Revision ID: aurelien.gateau@canonical.com-20101110085729-fl1ye7impkqhm0w6
Added a section about const correct-ness

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of unity-qt
 
3
 *
 
4
 * Copyright 2010 Canonical Ltd.
 
5
 *
 
6
 * Authors:
 
7
 * - Aurélien Gâteau <aurelien.gateau@canonical.com>
 
8
 *
 
9
 * License: GPL v3
 
10
 */
 
11
#ifndef INDICATORSERVICEMANAGER_H
 
12
#define INDICATORSERVICEMANAGER_H
 
13
 
 
14
// Local
 
15
 
 
16
// Qt
 
17
#include <QObject>
 
18
 
 
19
class QAction;
 
20
class QDBusPendingCallWatcher;
 
21
 
 
22
class IndicatorServiceManager : public QObject
 
23
{
 
24
    Q_OBJECT
 
25
public:
 
26
    IndicatorServiceManager(const char* name, uint version, QObject* parent=0);
 
27
    ~IndicatorServiceManager();
 
28
 
 
29
private Q_SLOTS:
 
30
    void slotServiceOwnerChanged(const QString& name, const QString& oldOwner, const QString& newOwner);
 
31
    void slotWatchFinished(QDBusPendingCallWatcher*);
 
32
 
 
33
private:
 
34
    Q_DISABLE_COPY(IndicatorServiceManager)
 
35
    QString m_serviceName;
 
36
    uint m_serviceVersion;
 
37
 
 
38
    void connectToService();
 
39
    void watchService();
 
40
    void unwatchService();
 
41
};
 
42
 
 
43
#endif /* INDICATORSERVICEMANAGER_H */