~ci-train-bot/sync-monitor/sync-monitor-ubuntu-yakkety-landing-053

« back to all changes in this revision

Viewing changes to src/powerd-proxy.h

  • Committer: CI Train Bot
  • Author(s): Renato Araujo Oliveira Filho
  • Date: 2016-04-19 19:32:27 UTC
  • mfrom: (58.1.8 last-sync-property)
  • Revision ID: ci-train-bot@canonical.com-20160419193227-7zthaqsx3bsyx0lf
Export the last successful sync data.
Approved by: Arthur Mello

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2016 Canonical Ltd.
 
3
 *
 
4
 * This file is part of sync-monitor.
 
5
 *
 
6
 * sync-monitor is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; version 3.
 
9
 *
 
10
 * contact-service-app 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 General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
#ifndef __POWERD_PROXY_H__
 
20
#define __POWERD_PROXY_H__
 
21
 
 
22
#include "dbustypes.h"
 
23
 
 
24
#include <QtCore/QObject>
 
25
#include <QtCore/QStringList>
 
26
#include <QtCore/QHash>
 
27
 
 
28
#include <QtDBus/QDBusInterface>
 
29
 
 
30
class SyncEvolutionSessionProxy;
 
31
 
 
32
class PowerdProxy : public QObject
 
33
{
 
34
    Q_OBJECT
 
35
public:
 
36
    PowerdProxy(QObject *parent=0);
 
37
    ~PowerdProxy();
 
38
 
 
39
    QString requestWakelock(const QString &name) const;
 
40
    bool clearWakelock(const QString &cookie) const;
 
41
 
 
42
public Q_SLOTS:
 
43
    void lock();
 
44
    void unlock();
 
45
 
 
46
private:
 
47
    QDBusInterface *m_iface;
 
48
    QString m_currentLock;
 
49
};
 
50
 
 
51
#endif