Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from special/master
Replace notification context properties with a DBus service
- Loading branch information
Showing
13 changed files
with
199 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> | ||
<node> | ||
<interface name="com.nokia.CommHistoryIf"> | ||
<interface name="org.nemomobile.CommHistoryIf"> | ||
<method name="activateNotification"> | ||
<arg name="groupId" type="i" direction="in"/> | ||
<arg name="remoteActionString" type="s" direction="in"/> | ||
</method> | ||
<method name="setInboxObserved"> | ||
<arg name="observed" type="b"/> | ||
</method> | ||
<method name="setInboxObserved"> | ||
<arg name="observed" type="b"/> | ||
<arg name="filterAccount" type="s"/> | ||
</method> | ||
<method name="setObservedConversations"> | ||
<arg name="conversations" type="av"/> | ||
</method> | ||
<method name="setCallHistoryObserved"> | ||
<arg name="observed" type="b"/> | ||
</method> | ||
</interface> | ||
</node> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,68 @@ | ||
/****************************************************************************** | ||
** | ||
** This file is part of commhistory-daemon. | ||
** | ||
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | ||
** Contact: Reto Zingg <reto.zingg@nokia.com> | ||
** | ||
** This library is free software; you can redistribute it and/or modify it | ||
** under the terms of the GNU Lesser General Public License version 2.1 as | ||
** published by the Free Software Foundation. | ||
** | ||
** This library is distributed in the hope that it will be useful, but | ||
** WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
** or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public | ||
** License for more details. | ||
** | ||
** You should have received a copy of the GNU Lesser General Public License | ||
** along with this library; if not, write to the Free Software Foundation, Inc., | ||
** 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
** | ||
******************************************************************************/ | ||
|
||
/* | ||
* This file was generated by qdbusxml2cpp version 0.7 | ||
* This file was generated by qdbusxml2cpp version 0.8 | ||
* Command line was: qdbusxml2cpp -c CommHistoryIfAdaptor -a commhistoryifadaptor CommHistoryIf.xml | ||
* | ||
* qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | ||
* qdbusxml2cpp is Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). | ||
* | ||
* This is an auto-generated file. | ||
* This file may have been hand-edited. Look for HAND-EDIT comments before re-generating it. | ||
* This file may have been hand-edited. Look for HAND-EDIT comments | ||
* before re-generating it. | ||
*/ | ||
|
||
#ifndef COMMHISTORYIFADAPTOR_H_1272020919 | ||
#define COMMHISTORYIFADAPTOR_H_1272020919 | ||
#ifndef COMMHISTORYIFADAPTOR_H_1374205692 | ||
#define COMMHISTORYIFADAPTOR_H_1374205692 | ||
|
||
#include <QtCore/QObject> | ||
#include <QtDBus/QtDBus> | ||
QT_BEGIN_NAMESPACE | ||
class QByteArray; | ||
template<class T> class QList; | ||
template<class Key, class Value> class QMap; | ||
class QString; | ||
class QStringList; | ||
class QVariant; | ||
QT_END_NAMESPACE | ||
|
||
/* | ||
* Adaptor class for interface com.nokia.CommHistoryIf | ||
* Adaptor class for interface org.nemomobile.CommHistoryIf | ||
*/ | ||
class CommHistoryIfAdaptor: public QDBusAbstractAdaptor | ||
{ | ||
Q_OBJECT | ||
Q_CLASSINFO("D-Bus Interface", "com.nokia.CommHistoryIf") | ||
|
||
Q_CLASSINFO("D-Bus Interface", "org.nemomobile.CommHistoryIf") | ||
Q_CLASSINFO("D-Bus Introspection", "" | ||
" <interface name=\"org.nemomobile.CommHistoryIf\">\n" | ||
" <method name=\"activateNotification\">\n" | ||
" <arg direction=\"in\" type=\"i\" name=\"groupId\"/>\n" | ||
" <arg direction=\"in\" type=\"s\" name=\"remoteActionString\"/>\n" | ||
" </method>\n" | ||
" <method name=\"setInboxObserved\">\n" | ||
" <arg type=\"b\" name=\"observed\"/>\n" | ||
" </method>\n" | ||
" <method name=\"setInboxObserved\">\n" | ||
" <arg type=\"b\" name=\"observed\"/>\n" | ||
" <arg type=\"s\" name=\"filterAccount\"/>\n" | ||
" </method>\n" | ||
" <method name=\"setObservedConversations\">\n" | ||
" <arg type=\"av\" name=\"conversations\"/>\n" | ||
" </method>\n" | ||
" <method name=\"setCallHistoryObserved\">\n" | ||
" <arg type=\"b\" name=\"observed\"/>\n" | ||
" </method>\n" | ||
" </interface>\n" | ||
"") | ||
public: | ||
CommHistoryIfAdaptor(QObject *parent); | ||
virtual ~CommHistoryIfAdaptor(); | ||
|
||
public: // PROPERTIES | ||
public Q_SLOTS: // METHODS | ||
void activateNotification(int groupId, const QString &remoteActionString); | ||
void activateAuthorization(const QString& contactId, | ||
const QString& accountPath, | ||
const QString& filename, | ||
const QString& message, | ||
const QString& transactionId, | ||
const QString& accountUniqueIdentifier); | ||
void setCallHistoryObserved(bool observed); | ||
void setInboxObserved(bool observed, const QString &filterAccount); | ||
void setInboxObserved(bool observed); | ||
void setObservedConversations(const QVariantList &conversations); | ||
Q_SIGNALS: // SIGNALS | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.