~ubuntu-branches/ubuntu/saucy/address-book-app/saucy-proposed

« back to all changes in this revision

Viewing changes to src/app/addressbookappdbus.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Tiago Salem Herrmann, Renato Araujo Oliveira Filho, Ubuntu daily release
  • Date: 2013-10-11 08:47:20 UTC
  • mfrom: (1.1.21)
  • Revision ID: package-import@ubuntu.com-20131011084720-a4c2g2x2k1j5c6l4
Tags: 0.2+13.10.20131011-0ubuntu1
[ Tiago Salem Herrmann ]
* Use url decoding before using values. (LP: #1234234)

[ Renato Araujo Oliveira Filho ]
* Ask for confirmation during the contact removal. (LP: #1213046)
* Removed trick to make the font gray when text does not have focus.
  (LP: #1228227)
* Fixed save avatar function.
* Initial implementation for UriHandler. (LP: #1230404)
* Added preview image.

[ Ubuntu daily release ]
* Automatic snapshot from revision 101

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2012-2013 Canonical, Ltd.
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 as published by
6
 
 * the Free Software Foundation; version 3.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 */
16
 
 
17
 
#ifndef ADDRESSBOOK_APPDBUS_H
18
 
#define ADDRESSBOOK_APPDBUS_H
19
 
 
20
 
#include <QtCore/QObject>
21
 
#include <QtDBus/QDBusContext>
22
 
 
23
 
/**
24
 
 * DBus interface for the phone app
25
 
 */
26
 
class AddressBookAppDBus : public QObject, protected QDBusContext
27
 
{
28
 
    Q_OBJECT
29
 
 
30
 
public:
31
 
    AddressBookAppDBus(QObject* parent=0);
32
 
    ~AddressBookAppDBus();
33
 
 
34
 
    bool connectToBus();
35
 
 
36
 
    static QString serviceName();
37
 
    static QString objectPath();
38
 
    static QString interfaceName();
39
 
 
40
 
public Q_SLOTS:
41
 
    Q_NOREPLY void ShowContact(const QVariant &contactId);
42
 
    Q_NOREPLY void CreateContact(const QString &phoneNumber);
43
 
    Q_NOREPLY void SendAppMessage(const QString &message);
44
 
    Q_NOREPLY void AddPhoneToContact(const QString &contactId, const QString &phoneNumber);
45
 
 
46
 
Q_SIGNALS:
47
 
    void request(const QString &message);
48
 
};
49
 
 
50
 
#endif // ADDRESSBOOK_APPDBUS_H