Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial split from meegotouchcp-connman project
- Loading branch information
Kevron Rees
committed
Oct 13, 2010
0 parents
commit e3920ee
Showing
15 changed files
with
1,415 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* -*- Mode: C++ -*- | ||
* meegotouchcp-connman - connectivity plugin for duicontrolpanel | ||
* Copyright © 2010, Intel Corporation. | ||
* | ||
* This program is licensed under the terms and conditions of the | ||
* Apache License, version 2.0. The full text of the Apache License is at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
*/ | ||
|
||
#ifndef COMMONDBUSTYPES_H | ||
#define COMMONDBUSTYPES_H | ||
|
||
#include <QtCore/QMap> | ||
#include <QtCore/QString> | ||
#include <QtCore/QMetaType> | ||
#include <QtDBus/QtDBus> | ||
|
||
typedef QMap<QString, QString> StringMap; | ||
Q_DECLARE_METATYPE ( StringMap ); | ||
|
||
inline void registerCommonDataTypes() { | ||
qDBusRegisterMetaType<StringMap >(); | ||
} | ||
|
||
#endif //COMMONDBUSTYPES_H |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<node name="/Manager" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"> | ||
<interface name="org.moblin.connman.Manager"> | ||
|
||
<method name="GetProperties" tp:name-for-bindings="Get_Properties"> | ||
<arg name="properties" type="a{sv}" direction="out"/> | ||
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="QVariantMap"/> | ||
</method> | ||
|
||
<method name="SetProperty" tp:name-for-bindings="Set_Property"> | ||
<arg name="name" type="s"/> | ||
<arg name="value" type="v"/> | ||
</method> | ||
|
||
<method name="RequestScan" tp:name-for-bindings="Request_Scan"> | ||
<arg name="type" type="s"/> | ||
</method> | ||
|
||
<method name="EnableTechnology" tp:name-for-bindings="Enable_Technology"> | ||
<arg name="type" type="s"/> | ||
</method> | ||
|
||
<method name="DisableTechnology" tp:name-for-bindings="Disable_Technology"> | ||
<arg name="type" type="s"/> | ||
</method> | ||
|
||
<method name="ConnectService" tp:name-for-bindings="Connect_Service"> | ||
<arg name="network" type="a{sv}"/> | ||
<arg name="service" type="o" direction="out" /> | ||
<annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="QVariantMap"/> | ||
</method> | ||
|
||
<signal name="PropertyChanged" tp:name-for-bindings="Property_Changed"> | ||
<arg name="name" type="s"/> | ||
<arg name="value" type="v"/> | ||
</signal> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<node name="/Service" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"> | ||
<interface name="org.moblin.connman.Service"> | ||
|
||
<method name="GetProperties" tp:name-for-bindings="Get_Properties"> | ||
<arg name="properties" type="a{sv}" direction="out"/> | ||
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="QVariantMap"/> | ||
</method> | ||
|
||
<method name="SetProperty" tp:name-for-bindings="Set_Property"> | ||
<arg name="name" type="s"/> | ||
<arg name="value" type="v"/> | ||
</method> | ||
|
||
<method name="ClearProperty" tp:name-for-bindings="Clear_Property"> | ||
<arg name="name" type="s" /> | ||
</method> | ||
|
||
<method name="Connect" tp:name-for-bindings="Connect" /> | ||
|
||
<method name="Disconnect" tp:name-for-bindings="Disconnect" /> | ||
|
||
<method name="Remove" tp:name-for-bindings="Remove" /> | ||
|
||
<method name="MoveBefore" tp:name-for-bindings="Move_Before"> | ||
<arg name="service" type="o"/> | ||
</method> | ||
|
||
<method name="MoveAfter" tp:name-for-bindings="Move_After"> | ||
<arg name="service" type="o"/> | ||
</method> | ||
|
||
<signal name="PropertyChanged" tp:name-for-bindings="Property_Changed"> | ||
<arg name="name" type="s"/> | ||
<arg name="value" type="v"/> | ||
</signal> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* -*- Mode: C++ -*- | ||
* meegotouchcp-connman - connectivity plugin for duicontrolpanel | ||
* Copyright © 2010, Intel Corporation. | ||
* | ||
* This program is licensed under the terms and conditions of the | ||
* Apache License, version 2.0. The full text of the Apache License is at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
*/ | ||
#ifndef DEBUG_H | ||
#define DEBUG_H | ||
|
||
#include <QString> | ||
|
||
#define STR(qstring) qstring.toLatin1().constData() | ||
|
||
#include <QtDebug> | ||
#define MDEBUG(...) qDebug(__VA_ARGS__) | ||
#define MWARNING(...) qWarning(__VA_ARGS__) | ||
#define MCRITICAL(...) qCritical(__VA__ARGS__) | ||
|
||
#endif //DEBUG_H |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#-*-Shell-Script-*- | ||
|
||
TEMPLATE = lib | ||
VERSION = 0.0.3 | ||
CONFIG += qt \ | ||
debug | ||
QT += dbus | ||
TARGET = $$qtLibraryTarget(connman-qt) | ||
target.path = $$INSTALL_ROOT/usr/lib | ||
!exists(manager.h) { | ||
system(qdbusxml2cpp -c Manager -p manager -N connman-manager.xml) | ||
} | ||
|
||
!exists(service.h) { | ||
system(qdbusxml2cpp -c Service -p service -N connman-service.xml) | ||
} | ||
|
||
HEADERS += manager.h \ | ||
service.h \ | ||
networkitemmodel.h \ | ||
networklistmodel.h \ | ||
commondbustypes.h \ | ||
|
||
headers.files = manager.h service.h networkitemmodel.h \ | ||
networklistmodel.h commondbustypes.h | ||
headers.path = $$INSTALL_ROOT/usr/include/connman-qt | ||
|
||
CONFIG += create_pc create_prl | ||
QMAKE_PKGCONFIG_DESCRIPTION = Qt Connman Library | ||
QMAKE_PKGCONFIG_INCDIR = $$headers.path | ||
pkgconfig.path = $$INSTALL_ROOT/usr/lib/pkgconfig | ||
pkgconfig.files = connman-qt.pc | ||
|
||
SOURCES += networkitemmodel.cpp \ | ||
networklistmodel.cpp \ | ||
manager.cpp \ | ||
service.cpp \ | ||
|
||
INSTALLS += target headers pkgconfig |
Oops, something went wrong.