~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to libs/kworkspace/kactivitymanager_p.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *   Copyright (C) 2010 Ivan Cukic <ivan.cukic(at)kde.org>
 
3
 *
 
4
 *   This program is free software; you can redistribute it and/or modify
 
5
 *   it under the terms of the GNU General Public License version 2,
 
6
 *   or (at your option) any later version, as published by the Free
 
7
 *   Software Foundation
 
8
 *
 
9
 *   This program 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
 
12
 *   GNU General Public License for more details
 
13
 *
 
14
 *   You should have received a copy of the GNU General Public
 
15
 *   License along with this program; if not, write to the
 
16
 *   Free Software Foundation, Inc.,
 
17
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
18
 */
 
19
 
 
20
#ifndef ACTIVITY_MANAGER_P_
 
21
#define ACTIVITY_MANAGER_P_
 
22
 
 
23
#include "activitymanager_interface.h"
 
24
 
 
25
#include <QDBusServiceWatcher>
 
26
 
 
27
class KActivityManager: public org::kde::ActivityManager {
 
28
    Q_OBJECT
 
29
public:
 
30
    static KActivityManager * self();
 
31
 
 
32
    static bool isActivityServiceRunning();
 
33
 
 
34
public Q_SLOTS:
 
35
    void serviceOwnerChanged(const QString & serviceName, const QString & oldOwner, const QString & newOwner);
 
36
 
 
37
Q_SIGNALS:
 
38
    void presenceChanged(bool present);
 
39
 
 
40
private:
 
41
    KActivityManager();
 
42
 
 
43
    QDBusServiceWatcher m_watcher;
 
44
 
 
45
    static KActivityManager * s_instance;
 
46
};
 
47
 
 
48
 
 
49
#endif // ACTIVITY_MANAGER_P_