mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
Export dock dbus interface
This commit is contained in:
parent
15011129c1
commit
eea7e35f77
@ -4,7 +4,7 @@
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT += core gui x11extras
|
||||
QT += core gui x11extras dbus
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
@ -25,7 +25,14 @@ SOURCES += \
|
||||
src/systraymanager.cpp \
|
||||
src/Panel/panelmenu.cpp \
|
||||
src/Controller/dockmodedata.cpp \
|
||||
src/Controller/dockconstants.cpp
|
||||
src/Controller/dockconstants.cpp \
|
||||
src/Controller/appmanager.cpp \
|
||||
src/DBus/dbusentrymanager.cpp \
|
||||
src/DBus/dbusentryproxyer.cpp \
|
||||
src/DBus/dbuspanelmanager.cpp \
|
||||
src/DBus/dbusclientmanager.cpp \
|
||||
src/DBus/dbusdockedappmanager.cpp \
|
||||
src/DBus/dbusdocksetting.cpp
|
||||
|
||||
HEADERS += \
|
||||
src/abstractdockitem.h \
|
||||
@ -41,7 +48,14 @@ HEADERS += \
|
||||
src/systraymanager.h \
|
||||
src/Panel/panelmenu.h \
|
||||
src/Controller/dockmodedata.h \
|
||||
src/Controller/dockconstants.h
|
||||
src/Controller/dockconstants.h \
|
||||
src/Controller/appmanager.h \
|
||||
src/DBus/dbusentrymanager.h \
|
||||
src/DBus/dbusentryproxyer.h \
|
||||
src/DBus/dbuspanelmanager.h \
|
||||
src/DBus/dbusclientmanager.h \
|
||||
src/DBus/dbusdockedappmanager.h \
|
||||
src/DBus/dbusdocksetting.h
|
||||
|
||||
RESOURCES += \
|
||||
images.qrc \
|
||||
|
7
dde-dock/src/Controller/appmanager.cpp
Normal file
7
dde-dock/src/Controller/appmanager.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include "appmanager.h"
|
||||
|
||||
AppManager::AppManager(QObject *parent) : QObject(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
19
dde-dock/src/Controller/appmanager.h
Normal file
19
dde-dock/src/Controller/appmanager.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef APPMANAGER_H
|
||||
#define APPMANAGER_H
|
||||
|
||||
#include <QObject>
|
||||
#include "DBus/dbusentrymanager.h"
|
||||
#include "DBus/dbusentryproxyer.h"
|
||||
|
||||
class AppManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AppManager(QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
};
|
||||
|
||||
#endif // APPMANAGER_H
|
26
dde-dock/src/DBus/dbusclientmanager.cpp
Normal file
26
dde-dock/src/DBus/dbusclientmanager.cpp
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -c DBusClientManager -p dbusclientmanager dde.dock.ClientManager.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2015 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.
|
||||
*/
|
||||
|
||||
#include "dbusclientmanager.h"
|
||||
|
||||
/*
|
||||
* Implementation of interface class DBusClientManager
|
||||
*/
|
||||
|
||||
DBusClientManager::DBusClientManager(QObject *parent)
|
||||
: QDBusAbstractInterface(staticServerPath(), staticInterfacePath(), staticInterfaceName(), QDBusConnection::sessionBus(), parent)
|
||||
{
|
||||
}
|
||||
|
||||
DBusClientManager::~DBusClientManager()
|
||||
{
|
||||
}
|
||||
|
85
dde-dock/src/DBus/dbusclientmanager.h
Normal file
85
dde-dock/src/DBus/dbusclientmanager.h
Normal file
@ -0,0 +1,85 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -c DBusClientManager -p dbusclientmanager dde.dock.ClientManager.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies).
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
*/
|
||||
|
||||
#ifndef DBUSCLIENTMANAGER_H_1435836676
|
||||
#define DBUSCLIENTMANAGER_H_1435836676
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
/*
|
||||
* Proxy class for interface dde.dock.ClientManager
|
||||
*/
|
||||
class DBusClientManager: public QDBusAbstractInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static inline const char *staticServerPath()
|
||||
{ return "com.deepin.daemon.Dock"; }
|
||||
static inline const char *staticInterfacePath()
|
||||
{ return "/dde/dock/ClientManager"; }
|
||||
static inline const char *staticInterfaceName()
|
||||
{ return "dde.dock.ClientManager"; }
|
||||
|
||||
public:
|
||||
DBusClientManager(QObject *parent = 0);
|
||||
|
||||
~DBusClientManager();
|
||||
|
||||
public Q_SLOTS: // METHODS
|
||||
inline QDBusPendingReply<bool> ActiveWindow(uint in0)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(QStringLiteral("ActiveWindow"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<bool> CloseWindow(uint in0)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(QStringLiteral("CloseWindow"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<uint> CurrentActiveWindow()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
return asyncCallWithArgumentList(QStringLiteral("CurrentActiveWindow"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<bool> IsLauncherShown()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
return asyncCallWithArgumentList(QStringLiteral("IsLauncherShown"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> ToggleShowDesktop()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
return asyncCallWithArgumentList(QStringLiteral("ToggleShowDesktop"), argumentList);
|
||||
}
|
||||
|
||||
Q_SIGNALS: // SIGNALS
|
||||
void ActiveWindowChanged(uint in0);
|
||||
void ShowingDesktopChanged();
|
||||
};
|
||||
|
||||
namespace dde {
|
||||
namespace dock {
|
||||
typedef ::DBusClientManager ClientManager;
|
||||
}
|
||||
}
|
||||
#endif
|
26
dde-dock/src/DBus/dbusdockedappmanager.cpp
Normal file
26
dde-dock/src/DBus/dbusdockedappmanager.cpp
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -c DBusDockedAppManager -p dbusdockedappmanager dde.dock.DockedAppManager.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2015 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.
|
||||
*/
|
||||
|
||||
#include "dbusdockedappmanager.h"
|
||||
|
||||
/*
|
||||
* Implementation of interface class DBusDockedAppManager
|
||||
*/
|
||||
|
||||
DBusDockedAppManager::DBusDockedAppManager(QObject *parent)
|
||||
: QDBusAbstractInterface(staticServerPath(), staticInterfacePath(), staticInterfaceName(), QDBusConnection::sessionBus(), parent)
|
||||
{
|
||||
}
|
||||
|
||||
DBusDockedAppManager::~DBusDockedAppManager()
|
||||
{
|
||||
}
|
||||
|
87
dde-dock/src/DBus/dbusdockedappmanager.h
Normal file
87
dde-dock/src/DBus/dbusdockedappmanager.h
Normal file
@ -0,0 +1,87 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -c DBusDockedAppManager -p dbusdockedappmanager dde.dock.DockedAppManager.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies).
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
*/
|
||||
|
||||
#ifndef DBUSDOCKEDAPPMANAGER_H_1435837249
|
||||
#define DBUSDOCKEDAPPMANAGER_H_1435837249
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
/*
|
||||
* Proxy class for interface dde.dock.DockedAppManager
|
||||
*/
|
||||
class DBusDockedAppManager: public QDBusAbstractInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static inline const char *staticServerPath()
|
||||
{ return "com.deepin.daemon.Dock"; }
|
||||
static inline const char *staticInterfacePath()
|
||||
{ return "/dde/dock/DockedAppManager"; }
|
||||
static inline const char *staticInterfaceName()
|
||||
{ return "dde.dock.DockedAppManager"; }
|
||||
|
||||
public:
|
||||
DBusDockedAppManager(QObject *parent = 0);
|
||||
|
||||
~DBusDockedAppManager();
|
||||
|
||||
public Q_SLOTS: // METHODS
|
||||
inline QDBusPendingReply<bool> Dock(const QString &in0, const QString &in1, const QString &in2, const QString &in3)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2) << QVariant::fromValue(in3);
|
||||
return asyncCallWithArgumentList(QStringLiteral("Dock"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<QStringList> DockedAppList()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
return asyncCallWithArgumentList(QStringLiteral("DockedAppList"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<bool> IsDocked(const QString &in0)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(QStringLiteral("IsDocked"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> Sort(const QStringList &in0)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(QStringLiteral("Sort"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<bool> Undock(const QString &in0)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(QStringLiteral("Undock"), argumentList);
|
||||
}
|
||||
|
||||
Q_SIGNALS: // SIGNALS
|
||||
void Docked(const QString &in0);
|
||||
void Undocked(const QString &in0);
|
||||
};
|
||||
|
||||
namespace dde {
|
||||
namespace dock {
|
||||
typedef ::DBusDockedAppManager DockedAppManager;
|
||||
}
|
||||
}
|
||||
#endif
|
26
dde-dock/src/DBus/dbusdocksetting.cpp
Normal file
26
dde-dock/src/DBus/dbusdocksetting.cpp
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -c DBusDockSetting -p dbusdocksetting dde.dock.DockSetting.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2015 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.
|
||||
*/
|
||||
|
||||
#include "dbusdocksetting.h"
|
||||
|
||||
/*
|
||||
* Implementation of interface class DBusDockSetting
|
||||
*/
|
||||
|
||||
DBusDockSetting::DBusDockSetting(QObject *parent)
|
||||
: QDBusAbstractInterface(staticServerPath(), staticInterfacePath(), staticInterfaceName(), QDBusConnection::sessionBus(), parent)
|
||||
{
|
||||
}
|
||||
|
||||
DBusDockSetting::~DBusDockSetting()
|
||||
{
|
||||
}
|
||||
|
121
dde-dock/src/DBus/dbusdocksetting.h
Normal file
121
dde-dock/src/DBus/dbusdocksetting.h
Normal file
@ -0,0 +1,121 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -c DBusDockSetting -p dbusdocksetting dde.dock.DockSetting.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies).
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
*/
|
||||
|
||||
#ifndef DBUSDOCKSETTING_H_1435836997
|
||||
#define DBUSDOCKSETTING_H_1435836997
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
/*
|
||||
* Proxy class for interface dde.dock.DockSetting
|
||||
*/
|
||||
class DBusDockSetting: public QDBusAbstractInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static inline const char *staticServerPath()
|
||||
{ return "com.deepin.daemon.Dock"; }
|
||||
static inline const char *staticInterfacePath()
|
||||
{ return "/dde/dock/DockSetting"; }
|
||||
static inline const char *staticInterfaceName()
|
||||
{ return "dde.dock.DockSetting"; }
|
||||
|
||||
public:
|
||||
DBusDockSetting(QObject *parent = 0);
|
||||
|
||||
~DBusDockSetting();
|
||||
|
||||
public Q_SLOTS: // METHODS
|
||||
inline QDBusPendingReply<int> GetClockType()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
return asyncCallWithArgumentList(QStringLiteral("GetClockType"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<bool> GetDisplayDate()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
return asyncCallWithArgumentList(QStringLiteral("GetDisplayDate"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<int> GetDisplayMode()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
return asyncCallWithArgumentList(QStringLiteral("GetDisplayMode"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<bool> GetDisplayWeek()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
return asyncCallWithArgumentList(QStringLiteral("GetDisplayWeek"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<int> GetHideMode()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
return asyncCallWithArgumentList(QStringLiteral("GetHideMode"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<bool> SetClockType(int in0)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(QStringLiteral("SetClockType"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<bool> SetDisplayDate(bool in0)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(QStringLiteral("SetDisplayDate"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<bool> SetDisplayMode(int in0)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(QStringLiteral("SetDisplayMode"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<bool> SetDisplayWeek(bool in0)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(QStringLiteral("SetDisplayWeek"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<bool> SetHideMode(int in0)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(QStringLiteral("SetHideMode"), argumentList);
|
||||
}
|
||||
|
||||
Q_SIGNALS: // SIGNALS
|
||||
void ClockTypeChanged(int in0);
|
||||
void DisplayDateChanged(bool in0);
|
||||
void DisplayModeChanged(int in0);
|
||||
void DisplayWeekChanged(bool in0);
|
||||
void HideModeChanged(int in0);
|
||||
};
|
||||
|
||||
namespace dde {
|
||||
namespace dock {
|
||||
typedef ::DBusDockSetting DockSetting;
|
||||
}
|
||||
}
|
||||
#endif
|
26
dde-dock/src/DBus/dbusentrymanager.cpp
Normal file
26
dde-dock/src/DBus/dbusentrymanager.cpp
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -c DBusEntryManager -p dbusentrymanager dde.dock.EntryManager.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2015 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.
|
||||
*/
|
||||
|
||||
#include "dbusentrymanager.h"
|
||||
|
||||
/*
|
||||
* Implementation of interface class DBusEntryManager
|
||||
*/
|
||||
|
||||
DBusEntryManager::DBusEntryManager(QObject *parent)
|
||||
: QDBusAbstractInterface(staticServerPath(), staticInterfacePath(), staticInterfaceName(), QDBusConnection::sessionBus(), parent)
|
||||
{
|
||||
}
|
||||
|
||||
DBusEntryManager::~DBusEntryManager()
|
||||
{
|
||||
}
|
||||
|
58
dde-dock/src/DBus/dbusentrymanager.h
Normal file
58
dde-dock/src/DBus/dbusentrymanager.h
Normal file
@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -c DBusEntryManager -p dbusentrymanager dde.dock.EntryManager.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies).
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
*/
|
||||
|
||||
#ifndef DBUSENTRYMANAGER_H_1435836026
|
||||
#define DBUSENTRYMANAGER_H_1435836026
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
/*
|
||||
* Proxy class for interface dde.dock.EntryManager
|
||||
*/
|
||||
class DBusEntryManager: public QDBusAbstractInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static inline const char *staticServerPath()
|
||||
{ return "com.deepin.daemon.Dock"; }
|
||||
static inline const char *staticInterfacePath()
|
||||
{ return "/dde/dock/EntryManager"; }
|
||||
static inline const char *staticInterfaceName()
|
||||
{ return "dde.dock.EntryManager"; }
|
||||
|
||||
public:
|
||||
DBusEntryManager(QObject *parent = 0);
|
||||
|
||||
~DBusEntryManager();
|
||||
|
||||
Q_PROPERTY(QList<QDBusObjectPath> Entries READ entries)
|
||||
inline QList<QDBusObjectPath> entries() const
|
||||
{ return qvariant_cast< QList<QDBusObjectPath> >(property("Entries")); }
|
||||
|
||||
public Q_SLOTS: // METHODS
|
||||
Q_SIGNALS: // SIGNALS
|
||||
void Added(const QDBusObjectPath &in0);
|
||||
void Removed(const QString &in0);
|
||||
void TrayInited();
|
||||
};
|
||||
|
||||
namespace dde {
|
||||
namespace dock {
|
||||
typedef ::DBusEntryManager EntryManager;
|
||||
}
|
||||
}
|
||||
#endif
|
27
dde-dock/src/DBus/dbusentryproxyer.cpp
Normal file
27
dde-dock/src/DBus/dbusentryproxyer.cpp
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -c DBusEntryProxyer -p dbusentryproxyer dde.dock.EntryProxyer.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2015 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.
|
||||
*/
|
||||
|
||||
#include "dbusentryproxyer.h"
|
||||
|
||||
/*
|
||||
* Implementation of interface class DBusEntryProxyer
|
||||
*/
|
||||
|
||||
DBusEntryProxyer::DBusEntryProxyer(const QString &path,QObject *parent)
|
||||
: QDBusAbstractInterface(staticServerPath(), path, staticInterfaceName(), QDBusConnection::sessionBus(), parent)
|
||||
{
|
||||
qDBusRegisterMetaType<StringMap>();
|
||||
}
|
||||
|
||||
DBusEntryProxyer::~DBusEntryProxyer()
|
||||
{
|
||||
}
|
||||
|
133
dde-dock/src/DBus/dbusentryproxyer.h
Normal file
133
dde-dock/src/DBus/dbusentryproxyer.h
Normal file
@ -0,0 +1,133 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -c DBusEntryProxyer -p dbusentryproxyer dde.dock.EntryProxyer.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies).
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
*/
|
||||
|
||||
#ifndef DBUSENTRYPROXYER_H_1435838653
|
||||
#define DBUSENTRYPROXYER_H_1435838653
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
typedef QMap<QString, QString> StringMap;
|
||||
Q_DECLARE_METATYPE(StringMap)
|
||||
/*
|
||||
* Proxy class for interface dde.dock.EntryProxyer
|
||||
*/
|
||||
class DBusEntryProxyer: public QDBusAbstractInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static inline const char *staticServerPath()
|
||||
{ return "com.deepin.daemon.Dock"; }
|
||||
static inline const char *staticInterfaceName()
|
||||
{ return "dde.dock.EntryProxyer"; }
|
||||
|
||||
public:
|
||||
DBusEntryProxyer(const QString &path, QObject *parent = 0);
|
||||
|
||||
~DBusEntryProxyer();
|
||||
|
||||
Q_PROPERTY(StringMap Data READ data)
|
||||
inline StringMap data() const
|
||||
{ return qvariant_cast< StringMap >(property("Data")); }
|
||||
|
||||
Q_PROPERTY(QString Id READ id)
|
||||
inline QString id() const
|
||||
{ return qvariant_cast< QString >(property("Id")); }
|
||||
|
||||
Q_PROPERTY(QString Type READ type)
|
||||
inline QString type() const
|
||||
{ return qvariant_cast< QString >(property("Type")); }
|
||||
|
||||
public Q_SLOTS: // METHODS
|
||||
inline QDBusPendingReply<bool> Activate(int in0, int in1)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);
|
||||
return asyncCallWithArgumentList(QStringLiteral("Activate"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> ContextMenu(int in0, int in1)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);
|
||||
return asyncCallWithArgumentList(QStringLiteral("ContextMenu"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> HandleDragDrop(int in0, int in1, const QString &in2)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2);
|
||||
return asyncCallWithArgumentList(QStringLiteral("HandleDragDrop"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> HandleDragEnter(int in0, int in1, const QString &in2)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2);
|
||||
return asyncCallWithArgumentList(QStringLiteral("HandleDragEnter"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> HandleDragLeave(int in0, int in1, const QString &in2)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2);
|
||||
return asyncCallWithArgumentList(QStringLiteral("HandleDragLeave"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> HandleDragOver(int in0, int in1, const QString &in2)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2);
|
||||
return asyncCallWithArgumentList(QStringLiteral("HandleDragOver"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> HandleMenuItem(const QString &in0)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(QStringLiteral("HandleMenuItem"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> HandleMouseWheel(int in0, int in1, int in2)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2);
|
||||
return asyncCallWithArgumentList(QStringLiteral("HandleMouseWheel"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> SecondaryActivate(int in0, int in1)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);
|
||||
return asyncCallWithArgumentList(QStringLiteral("SecondaryActivate"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> ShowQuickWindow()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
return asyncCallWithArgumentList(QStringLiteral("ShowQuickWindow"), argumentList);
|
||||
}
|
||||
|
||||
Q_SIGNALS: // SIGNALS
|
||||
void DataChanged(const QString &in0, const QString &in1);
|
||||
};
|
||||
|
||||
namespace dde {
|
||||
namespace dock {
|
||||
typedef ::DBusEntryProxyer EntryProxyer;
|
||||
}
|
||||
}
|
||||
#endif
|
26
dde-dock/src/DBus/dbuspanelmanager.cpp
Normal file
26
dde-dock/src/DBus/dbuspanelmanager.cpp
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -c DBusPanelManager -p dbuspanelmanager dde.dock.Property.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2015 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.
|
||||
*/
|
||||
|
||||
#include "dbuspanelmanager.h"
|
||||
|
||||
/*
|
||||
* Implementation of interface class DBusPanelManager
|
||||
*/
|
||||
|
||||
DBusPanelManager::DBusPanelManager(QObject *parent)
|
||||
: QDBusAbstractInterface(staticServerPath(), staticInterfacePath(), staticInterfaceName(), QDBusConnection::sessionBus(), parent)
|
||||
{
|
||||
}
|
||||
|
||||
DBusPanelManager::~DBusPanelManager()
|
||||
{
|
||||
}
|
||||
|
66
dde-dock/src/DBus/dbuspanelmanager.h
Normal file
66
dde-dock/src/DBus/dbuspanelmanager.h
Normal file
@ -0,0 +1,66 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -c DBusPanelManager -p dbuspanelmanager dde.dock.Property.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies).
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
*/
|
||||
|
||||
#ifndef DBUSPANELMANAGER_H_1435837517
|
||||
#define DBUSPANELMANAGER_H_1435837517
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
/*
|
||||
* Proxy class for interface dde.dock.Property
|
||||
*/
|
||||
class DBusPanelManager: public QDBusAbstractInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static inline const char *staticServerPath()
|
||||
{ return "com.deepin.daemon.Dock"; }
|
||||
static inline const char *staticInterfacePath()
|
||||
{ return "/dde/dock/Property"; }
|
||||
static inline const char *staticInterfaceName()
|
||||
{ return "dde.dock.Property"; }
|
||||
|
||||
public:
|
||||
DBusPanelManager(QObject *parent = 0);
|
||||
|
||||
~DBusPanelManager();
|
||||
|
||||
Q_PROPERTY(int Height READ height)
|
||||
inline int height() const
|
||||
{ return qvariant_cast< int >(property("Height")); }
|
||||
|
||||
Q_PROPERTY(int PanelWidth READ panelWidth)
|
||||
inline int panelWidth() const
|
||||
{ return qvariant_cast< int >(property("PanelWidth")); }
|
||||
|
||||
public Q_SLOTS: // METHODS
|
||||
inline QDBusPendingReply<int> SetPanelWidth(int in0)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(QStringLiteral("SetPanelWidth"), argumentList);
|
||||
}
|
||||
|
||||
Q_SIGNALS: // SIGNALS
|
||||
};
|
||||
|
||||
namespace dde {
|
||||
namespace dock {
|
||||
typedef ::DBusPanelManager Property;
|
||||
}
|
||||
}
|
||||
#endif
|
@ -45,6 +45,14 @@ Panel::Panel(QWidget *parent)
|
||||
panelMenu = new PanelMenu();
|
||||
|
||||
slotDockModeChanged(dockCons->getDockMode(),dockCons->getDockMode());
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////
|
||||
AppManager *appManager = new AppManager(this);
|
||||
}
|
||||
|
||||
void Panel::resize(const QSize &size)
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "Widgets/docklayout.h"
|
||||
#include "Widgets/screenmask.h"
|
||||
#include "panelmenu.h"
|
||||
#include "Controller/appmanager.h"
|
||||
|
||||
class Panel : public QLabel
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user