Compare commits

...

34 Commits

Author SHA1 Message Date
jingshenghao
a90f386ddc feat: Add files generated by qdbusXML2cpp and DCONG2cpp
Add files generated by qdbusXML2cpp and DCONG2cpp

Log: Add files generated by qdbusXML2cpp and DCONG2cpp
2025-01-14 19:32:23 +08:00
deepin-admin-bot
13c4162b5e chore: Sync by 3ab9683b84
sync by github workflow

Log: none
Influence: none
2024-06-19 07:24:54 +00:00
deepin-admin-bot
32140ccf26 chore: Sync by b7b12fd4a9
sync by github workflow

Log: none
Influence: none
2024-06-13 03:00:01 +00:00
Hillwood Yang
697e678587
fix: Need link Xcursor for shutdown plugin (#993)
Log: fix build error on openSUSE
2024-04-17 13:56:34 +08:00
ck
b2da5add21 chore: bump version to 6.0.37
release 6.0.37

Log: bump version to 6.0.37
2024-04-17 09:51:20 +08:00
ck
a15d92c7eb fix: wine app menu obscured by popup widget
remove ToolTip windowflag

Issue: https://github.com/linuxdeepin/developer-center/issues/7612
Bug: https://pms.uniontech.com/bug-view-239173.html
2024-03-28 12:05:23 +08:00
tsic404
00d0f13c1a fix: duplicate tray for some app
some gtk apps use libayatana-appindicator create tray will create xembed and sni duplicate tray
not show sni tray which path contains /org/ayatana/NotificationItem/ created by ayatana-appindicator

log: not show ayatana-appindicator sni tray on xorg
2024-03-26 10:58:44 +08:00
ck
32bd005492 chore: bump version 6.0.36
bump version 6.0.36
2024-03-12 13:10:46 +08:00
ck
3eb95284a0 fix: dcc-dock-plugin icon tweak
控制中心中dock的插件统一混合颜色
暗色主题时填充白色,浅色主题填充黑色

Issue: https://github.com/linuxdeepin/developer-center/issues/6454
2024-03-04 14:52:03 +08:00
ck
1653473ecc fix: bluetooth quick-trays item icon tweak
快捷面板中蓝牙图标和网络插件保持一致
- 大小一致 24x24
- 选中时高亮色填充
- 圆图标

Issue: https://github.com/linuxdeepin/developer-center/issues/7207
2024-02-22 09:34:32 +08:00
zsien
0f940b6579 fix: popup panel cannot be opened when clicking the labels
Issues: linuxdeepin/developer-center#7222
2024-02-02 13:00:44 +08:00
tsic404
72f4286f49 chore: bump version 6.0.35
bump version 6.0.35

log: as title
2024-02-02 10:54:42 +08:00
tsic404
e8e0f3c96f chore: adjust dock ui
1. adjust dock window space to 10
2. make traymainwindow contentsMagins to fixed value
3. make trycontrolpanel background color alpha
4. remove space between fullscreen and dock
5. set border for quick panel items
6. adjust standitem icon and text space
7. adjust sliderContainer icon background color

log: as title
2024-02-02 10:54:42 +08:00
tsic404
48cced00a9 chore: release version 6.0.34
log: as title
2024-01-30 17:34:46 +08:00
tsic404
edea9b860d fix: dock item indicator not update
update dock item position

log: as title
issue: https://github.com/linuxdeepin/developer-center/issues/7097
2024-01-30 08:39:06 +00:00
tsic404
710a9f562b fix: dock plugin unable to click when in keep hide
make dock not hide when click plugin and popup show even in keep hide mode

log: as title
issue: https://github.com/linuxdeepin/developer-center/issues/7132
2024-01-30 16:26:31 +08:00
chenhongtao
478f564631 fix: dock will not auto hide after set size
Issue: https://github.com/linuxdeepin/developer-center/issues/7129
Log:
2024-01-30 08:21:33 +00:00
chenhongtao
241e668ea2 fix: dock animation broken
Issue: https://github.com/linuxdeepin/developer-center/issues/7143
Log:
2024-01-30 16:08:38 +08:00
tsic404
e6e8995e51 fix: dock plugin calculated to an incorrect size
set minSize only for uosai

log: as title
issue: https://github.com/linuxdeepin/developer-center/issues/7127
2024-01-30 08:04:02 +00:00
tsic404
2b81011b7e chore: bump version 6.0.33
bump version 6.0.33

log: as title
2024-01-30 14:07:51 +08:00
tsic404
2bb5e49cac chore: bump version 6.0.32
bump version 6.0.32

log: as title
2024-01-26 14:29:51 +08:00
tsic404
b4ec458dd5 fix: tmp blocked uosai plugin in quickpanel
log: as title
2024-01-26 14:22:12 +08:00
tsic404
572c0c8aad fix: dock theme not follow system
reset dock dapplication palettetype to 0

log: as title
issue: https://github.com/linuxdeepin/developer-center/issues/7090
2024-01-25 08:01:44 +00:00
tsic404
c0c909f9e8 fix: dock get max size when positionChanged and KeepHide mode
no one update hideState properties in taskmanager and
not update dockSize when dock is in hide state by resetDragWindow call

log: as title
issue: https://github.com/linuxdeepin/developer-center/issues/7040
2024-01-25 14:23:18 +08:00
tsic404
8b04a51b51 fix: dock not remove plugin when fcitx exit
rowCountChanged signal not send

log: send rowCountChanged signal
issue: https://github.com/linuxdeepin/developer-center/issues/7080
2024-01-25 14:04:52 +08:00
tsic404
d1f61330f3 chore: release 6.0.31
release 6.0.31

log: as title
2024-01-24 07:28:21 +00:00
tsic404
7097ae7f3c fix: error datetime tooltip
issue: https://github.com/linuxdeepin/developer-center/issues/7056
log: correct longtimeformat and timeformat str
2024-01-23 09:43:02 +00:00
tsic404
3939ca9c12 fix: unable get docked entriy by soft link path
set canonicalFilePath instead of absoluteFilePath for deskfileinfo
and find it by canonicalFilePath instead of user input path

log: use canonicalFilePath instead of absoluteFilePath
2024-01-23 09:43:02 +00:00
chenhongtao
0300e28332 chore: bump version to 6.0.30
Log:
2024-01-23 07:49:39 +00:00
chenhongtao
13b1e661ea chore: update translations
Log:
2024-01-23 06:51:20 +00:00
chenhongtao
b5399bd0ec chore: bring back display setting button
Log:
2024-01-23 06:37:24 +00:00
chenhongtao
945bb03a27 chore: remove Cooperation in display plugin
Issue: linuxdeepin/developer-center#7023
Log:
2024-01-22 09:26:03 +00:00
chenhongtao
0f93647736 chore: bump version to 6.0.29
Log:
2024-01-22 05:48:38 +00:00
chenhongtao
ca4408c660 fix: when dconfig no value, use system format
Log:
2024-01-19 13:37:21 +00:00
158 changed files with 12727 additions and 5404 deletions

12
.github/workflows/call-api-check.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: apiCheck
on:
pull_request_target:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
api-check:
uses: linuxdeepin/.github/.github/workflows/api-check.yml@master

20
.github/workflows/call-debian-check.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: debianCheck
on:
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
pull-requests: write
contents: read
checks: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
debian-check:
uses: linuxdeepin/.github/.github/workflows/debian-check.yml@master
with:
job_name: "debian-check"

17
.github/workflows/call-static-check.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: staticCheck
on:
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: read
checks: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
static-check:
uses: linuxdeepin/.github/.github/workflows/static-check.yml@master

View File

@ -63,3 +63,8 @@ License: CC0-1.0
Files: plugins/overlay-warning/org.deepin.dde.dock.overlay.policy
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later
Files: toolGenerate/**/*
Copyright: None
License: CC0-1.0

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.16)
if (NOT DEFINED VERSION)
set(VERSION 6.0.28)
set(VERSION 6.0.37)
endif()
project(dde-dock)

65
debian/changelog vendored
View File

@ -1,3 +1,68 @@
dde-dock (6.0.37) unstable; urgency=medium
* release 6.0.37
* fix linuxdeepin/developer-center#7612
-- Mike Chen <chenke@deepin.org> Wed, 03 Apr 2024 10:22:29 +0800
dde-dock (6.0.36) unstable; urgency=medium
* release 6.0.36
* fix linuxdeepin/developer-center#7222
* fix linuxdeepin/developer-center#7207
* fix linuxdeepin/developer-center#6454
-- Mike Chen <chenke@deepin.org> Wed, 06 Mar 2024 16:50:36 +0800
dde-dock (6.0.35) unstable; urgency=medium
* feat: adjust dock ui
-- tsic404 <liuheng@deepin.org> Thu, 01 Feb 2024 10:58:27 +0800
dde-dock (6.0.34) unstable; urgency=medium
* fix: dock animation broken (https://github.com/linuxdeepin/developer-center/issues/7143)
* fix: dock plugin calculated to an incorrect size (https://github.com/linuxdeepin/developer-center/issues/7127)
* fix: dock will not auto hide after set size (https://github.com/linuxdeepin/developer-center/issues/7129)
* fix: dock plugin unable to click when in keep hide (https://github.com/linuxdeepin/developer-center/issues/7132)
* fix: dock item indicator not update (https://github.com/linuxdeepin/developer-center/issues/7097)
-- tsic404 <liuheng@deepin.org> Tue, 30 Jan 2024 16:17:59 +0800
dde-dock (6.0.33) unstable; urgency=medium
* fix: tmp block uosai in quickpanel
-- tsic404 <liuheng@deepin.org> Fri, 26 Jan 2024 14:38:06 +0800
dde-dock (6.0.32) unstable; urgency=medium
* fix: dock get max size when positionChanged and KeepHide mode (https://github.com/linuxdeepin/developer-center/issues/7040)
* fix: dock not remove plugin when fcitx exit (https://github.com/linuxdeepin/developer-center/issues/7080)
* fix: dock theme not follow system (https://github.com/linuxdeepin/developer-center/issues/7090)
-- tsic404 <liuheng@deepin.org> Thu, 25 Jan 2024 14:30:26 +0800
dde-dock (6.0.31) unstable; urgency=medium
* fix: error datetime tooltip (https://github.com/linuxdeepin/developer-center/issues/7056)
* fix: unable get docked entriy by soft link path (https://github.com/linuxdeepin/developer-center/issues/7033)
-- tsic404 <liuheng@deepin.org> Tue, 23 Jan 2024 17:43:44 +0800
dde-dock (6.0.30) unstable; urgency=medium
* chore: remove Cooperation in display plugin (https://github.com/linuxdeepin/developer-center/issues/7023)
-- chenhongtao <chenhongtao@deepin.org> Mon, 22 Jan 2024 17:27:34 +0800
dde-dock (6.0.29) unstable; urgency=medium
* fix: when no timeformat, tooltip is empty
-- chenhongtao <chenhongtao@deepin.org> Mon, 22 Jan 2024 09:47:21 +0800
dde-dock (6.0.28) unstable; urgency=medium
* fix: the item that removed is exist yet (https://github.com/linuxdeepin/developer-center/issues/4631)

View File

@ -335,7 +335,14 @@ QIcon DBusDockAdaptors::getSettingIcon(PluginsItemInterface *plugin, QSize &pixm
QIcon icon = plugin->icon(DockPart::DCCSetting, colorType);
if (!icon.isNull()) {
pixmapSize = iconSize(icon);
return icon;
QColor c = colorType == DGuiApplicationHelper::LightType ? Qt::black :Qt::white;
QPixmap pixmap = icon.pixmap(pixmapSize);
QPainter pa(&pixmap);
pa.setCompositionMode(QPainter::CompositionMode_SourceIn);
pa.fillRect(pixmap.rect(), c);
return pixmap;
}
// 如果插件中没有设置图标,则根据插件的类型,获取其他的图标

View File

@ -159,6 +159,10 @@ int main(int argc, char *argv[])
DockApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
DockApplication app(argc, argv);
// NOTE: dde-shell load dde-dock plugins and mark loader program DS_APP_ID as dde-dock
// so need reset DGuiApplication pallette to follow system
DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::ColorType::UnknownType);
//崩溃信号
signal(SIGSEGV, sig_crash);
signal(SIGILL, sig_crash);

View File

@ -40,7 +40,7 @@ DesktopInfo::DesktopInfo(const QString &desktopfile)
}
}
m_desktopFilePath = desktopFileInfo.absoluteFilePath();
m_desktopFilePath = desktopFileInfo.canonicalFilePath();
m_isValid = desktopFileInfo.isAbsolute() && QFile::exists(desktopFileInfo.absoluteFilePath());
m_desktopFile.reset(new QSettings(m_desktopFilePath, QSettings::IniFormat));
m_desktopFile->setIniCodec("utf-8");

View File

@ -162,9 +162,11 @@ QList<Entry*> Entries::getEntries()
Entry *Entries::getDockedEntryByDesktopFile(const QString &desktopFile)
{
QFileInfo desktopFileInfo(desktopFile);
Entry *ret = nullptr;
for (auto entry : filterDockedEntries()) {
if ((entry->isValid()) && desktopFile == entry->getFileName()) {
if ((entry->isValid()) && desktopFileInfo.canonicalFilePath() == entry->getFileName()) {
ret = entry;
break;
}

View File

@ -27,6 +27,7 @@
#include <cstdint>
#include <dtkcore_global.h>
#include <functional>
#include <iterator>
#include <memory>
#include <algorithm>
@ -976,7 +977,7 @@ QVector<XWindow> TaskManager::getActiveWinGroup(XWindow xid)
*/
void TaskManager::updateHideState(bool delay)
{
if (m_ddeLauncherVisible || m_trayGridWidgetVisible || m_popupVisible) {
if (preventDockAutoHide()) {
setPropHideState(HideState::Show);
return;
}
@ -1165,7 +1166,7 @@ void TaskManager::handleActiveWindowChanged(WindowInfoBase *info)
m_activeWindow = info;
XWindow winId = m_activeWindow->getXid();
m_entries->handleActiveWindowChanged(winId);
updateHideState(true);
QTimer::singleShot(200, std::bind(&TaskManager::updateHideState, this, true));
}
/**
@ -1605,3 +1606,8 @@ bool TaskManager::showMultiWindow() const
{
return m_showMultiWindow;
}
bool TaskManager::preventDockAutoHide() const
{
return m_ddeLauncherVisible || m_popupVisible || m_trayGridWidgetVisible;
}

View File

@ -129,6 +129,7 @@ public:
void previewWindow(uint xid);
void cancelPreviewWindow();
bool preventDockAutoHide() const;
Q_SIGNALS:
void serviceRestarted();

View File

@ -4,7 +4,9 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
#include "multiscreenworker.h"
#include "constants.h"
#include "mainwindow.h"
#include "taskmanager/taskmanager.h"
#include "utils.h"
#include "displaymanager.h"
#include "traymainwindow.h"
@ -102,6 +104,10 @@ void MultiScreenWorker::onRegionMonitorChanged(int x, int y, const QString &key)
if (m_registerKey != key || testState(MousePress))
return;
if (m_hideMode == HideMode::KeepHidden) {
TaskManager::instance()->setPropHideState(HideState::Show);
}
tryToShowDock(x, y);
}
@ -122,6 +128,10 @@ void MultiScreenWorker::onExtralRegionMonitorChanged(int x, int y, const QString
// 鼠标移动到任务栏界面之外停止计时器延时2秒改变任务栏所在屏幕
m_delayWakeTimer->stop();
if (m_hideMode == HideMode::KeepHidden && !TaskManager::instance()->preventDockAutoHide()) {
TaskManager::instance()->setPropHideState(HideState::Hide);
}
if (m_hideMode == HideMode::KeepShowing
|| ((m_hideMode == HideMode::KeepHidden || m_hideMode == HideMode::SmartHide) && m_hideState == HideState::Show)) {
Q_EMIT requestPlayAnimation(DOCK_SCREEN->current(), m_position, Dock::AniAction::Show);
@ -132,6 +142,7 @@ void MultiScreenWorker::onExtralRegionMonitorChanged(int x, int y, const QString
void MultiScreenWorker::updateDisplay()
{
tryToHideDock();
//1、屏幕停靠信息
//2、任务栏当前显示在哪个屏幕也需要更新
//3、任务栏高度或宽度调整的拖拽区域
@ -181,7 +192,7 @@ void MultiScreenWorker::onPositionChanged(int position)
qDebug() << "position change from: " << lastPos << " to: " << position;
#endif
m_position = static_cast<Position>(position);
Q_EMIT positionChanged(m_position);
DockItem::setDockPosition(m_position);
if (m_hideMode == HideMode::KeepHidden || (m_hideMode == HideMode::SmartHide && m_hideState == HideState::Hide)) {
// 这种情况切换位置,任务栏不需要显示
@ -193,10 +204,11 @@ void MultiScreenWorker::onPositionChanged(int position)
// 更新当前屏幕信息,下次显示从目标屏幕显示
DOCK_SCREEN->updateDockedScreen(getValidScreen(m_position));
// 需要更新frontendWindowRect接口数据否则会造成HideState属性值不变
emit requestUpdateFrontendGeometry();
Q_EMIT requestUpdateFrontendGeometry();
Q_EMIT positionChanged(m_position);
} else {
// 一直显示的模式才需要显示
emit requestUpdatePosition(lastPos, m_position);
Q_EMIT requestUpdatePosition(lastPos, m_position);
}
}
@ -410,7 +422,7 @@ void MultiScreenWorker::onRequestUpdateRegionMonitor()
}
// 触屏监控高度固定调整为最大任务栏高度100+任务栏与屏幕边缘间距
const int monitHeight = 100 + WINDOWMARGIN;
const int monitHeight = 100 + WINDOWMARGIN * qApp->devicePixelRatio();
// 任务栏触屏唤起区域
m_touchRectList.clear();
@ -538,7 +550,7 @@ void MultiScreenWorker::onRequestDelayShowDock()
void MultiScreenWorker::initMembers()
{
m_monitorUpdateTimer->setInterval(100);
m_monitorUpdateTimer->setInterval(1000);
m_monitorUpdateTimer->setSingleShot(true);
m_delayWakeTimer->setSingleShot(true);
@ -892,7 +904,6 @@ void MultiScreenWorker::onDelayAutoHideChanged()
*/
void MultiScreenWorker::tryToShowDock(int eventX, int eventY)
{
DockItem::setDockPosition(m_position);
if (qApp->property("DRAG_STATE").toBool() || testState(ChangePositionAnimationStart)) {
qWarning() << "dock is draging or animation is running";
return;
@ -947,3 +958,16 @@ void MultiScreenWorker::tryToShowDock(int eventX, int eventY)
}
}
}
void MultiScreenWorker::tryToHideDock()
{
if (hideMode() == HideMode::KeepShowing) {
return;
}
auto mousePos = QCursor::pos();
const QString &currentScreen = DOCK_SCREEN->current();
if (isCursorOut(mousePos.x(), mousePos.y())) {
Q_EMIT requestPlayAnimation(currentScreen, m_position, Dock::AniAction::Hide);
}
}

View File

@ -21,7 +21,7 @@
#include <QObject>
#include <QFlag>
#define WINDOWMARGIN ((m_displayMode == Dock::Efficient) ? 0 : 10)
#define WINDOWMARGIN ((m_displayMode == Dock::Efficient) ? 0 : 5)
#define ANIMATIONTIME 300
#define FREE_POINT(p) if (p) {\
delete p;\
@ -153,6 +153,7 @@ private:
void reInitDisplayData();
void tryToShowDock(int eventX, int eventY);
void tryToHideDock();
void changeDockPosition(QString fromScreen, QString toScreen, const Position &fromPos, const Position &toPos);
void resetDockScreen();

View File

@ -78,27 +78,38 @@ DateTimeDisplayer::DateTimeDisplayer(bool showMultiRow, QWidget *parent)
void DateTimeDisplayer::initDConfig()
{
QLocale currentLocale = QLocale::system();
if (!m_config->isValid())
return;
if (!m_config->isDefaultValue(localeName_key)) {
m_locale = QLocale(m_config->value(localeName_key).toString());
} else {
m_locale = currentLocale;
}
if (!m_config->isDefaultValue(shortDateFormat_key)) {
m_shortDateFormatStr = m_config->value(shortDateFormat_key).toString();
} else {
m_shortDateFormatStr = currentLocale.dateFormat(QLocale::ShortFormat);
}
if (!m_config->isDefaultValue(shortDateFormat_key)) {
m_longDateFormatStr = m_config->value(longDateFormat_key).toString();
} else {
m_longDateFormatStr = currentLocale.dateFormat(QLocale::LongFormat);
}
if (!m_config->isDefaultValue(shortTimeFormat_key)) {
m_shortTimeFormatStr = m_config->value(shortTimeFormat_key).toString();
} else {
m_shortTimeFormatStr = currentLocale.timeFormat(QLocale::ShortFormat);
}
if (!m_config->isDefaultValue(longTimeFormat_key)) {
m_longTimeFormatStr = m_config->value(longTimeFormat_key).toString();
}
if (!m_config->isDefaultValue(longDateFormat_key)) {
m_longDateFormatStr = m_config->value(longDateFormat_key).toString();
} else {
m_longTimeFormatStr = currentLocale.timeFormat(QLocale::LongFormat);
}
connect(m_config, &DTK_CORE_NAMESPACE::DConfig::valueChanged, this, [this] (const QString &key) {

View File

@ -1097,7 +1097,7 @@ int MainPanelControl::trayAreaSize(qreal ratio) const
length += (m_position == Dock::Position::Top || m_position == Dock::Position::Bottom ? topWindow->width() * ratio : topWindow->height() * ratio);
}
length += topWindow->dockSpace() * ratio;
length += topWindow->dockSpace();
}
return length;

View File

@ -4,6 +4,7 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
#include "mainwindowbase.h"
#include "constants.h"
#include "dragwidget.h"
#include "multiscreenworker.h"
#include "dockscreen.h"
@ -270,27 +271,30 @@ void MainWindowBase::resetDragWindow()
if (!screen)
return;
QRect currentRect = getDockGeometry(screen, position(), displayMode(), Dock::HideState::Show);
if (m_multiScreenWorker->hideState() == Dock::HideState::Show) {
QRect currentRect = getDockGeometry(screen, position(), displayMode(), Dock::HideState::Show);
// 这个时候屏幕有可能是隐藏的不能直接使用this->width()这种去设置任务栏的高度,而应该保证原值
int dockSize = 0;
if (m_multiScreenWorker->position() == Position::Left
|| m_multiScreenWorker->position() == Position::Right) {
dockSize = this->width() == 0 ? currentRect.width() : this->width();
} else {
dockSize = this->height() == 0 ? currentRect.height() : this->height();
// 这个时候屏幕有可能是隐藏的不能直接使用this->width()这种去设置任务栏的高度,而应该保证原值
int dockSize = 0;
if (m_multiScreenWorker->position() == Position::Left
|| m_multiScreenWorker->position() == Position::Right) {
dockSize = this->width() == 0 ? currentRect.width() : this->width();
} else {
dockSize = this->height() == 0 ? currentRect.height() : this->height();
}
/** FIX ME
* dockSize的值在40100
* 1dockSize为39dock的mainwindow高度变成9939
* 2dockSize的值在这里不应该为39
*
*/
dockSize = qBound(DOCK_MIN_SIZE, dockSize, DOCK_MAX_SIZE);
// 通知窗管和后端更新数据
m_multiScreenWorker->updateDaemonDockSize(dockSize); // 1.先更新任务栏高度
}
/** FIX ME
* dockSize的值在40100
* 1dockSize为39dock的mainwindow高度变成9939
* 2dockSize的值在这里不应该为39
*
*/
dockSize = qBound(DOCK_MIN_SIZE, dockSize, DOCK_MAX_SIZE);
// 通知窗管和后端更新数据
m_multiScreenWorker->updateDaemonDockSize(dockSize); // 1.先更新任务栏高度
m_multiScreenWorker->requestUpdateFrontendGeometry(); // 2.再更新任务栏位置,保证先1再2
m_multiScreenWorker->requestNotifyWindowManager();
m_multiScreenWorker->requestUpdateRegionMonitor(); // 界面发生变化,应更新监控区域
@ -427,9 +431,9 @@ QRect MainWindowBase::getDockGeometry(QScreen *screen, const Dock::Position &pos
}
int y = 0;
if (pos == Dock::Position::Top)
y = (screenRect.y() + static_cast<int>(margin / ratio));
y = (screenRect.y() + static_cast<int>(margin));
else
y = (screenRect.y() + static_cast<int>(screenRect.height() / ratio - margin / ratio)) - dockSize;
y = (screenRect.y() + static_cast<int>(screenRect.height() / ratio - margin)) - dockSize;
rect.setX(x);
rect.setY(y);
rect.setWidth(width);
@ -447,9 +451,9 @@ QRect MainWindowBase::getDockGeometry(QScreen *screen, const Dock::Position &pos
}
int x = 0;
if (pos == Dock::Position::Left)
x = screenRect.x() + static_cast<int>(margin / ratio);
x = screenRect.x() + static_cast<int>(margin);
else
x = screenRect.x() + static_cast<int>(screenRect.width() /ratio - margin / ratio) - dockSize;
x = screenRect.x() + static_cast<int>(screenRect.width() /ratio - margin) - dockSize;
int y = screenRect.y() + static_cast<int>(((screenRect.height() / ratio) - totalSize) / 2);
// 计算y坐标

View File

@ -23,6 +23,8 @@
#include <QGuiApplication>
#include <QMenu>
#include <QDragLeaveEvent>
#include <algorithm>
#include <QSize>
#define ITEMSIZE 22
#define STARTSPACE 6
@ -707,7 +709,12 @@ void QuickDockItem::setPosition(Dock::Position position)
if (m_mainLayout) {
QWidget *itemWidget = m_pluginItem->itemWidget(m_itemKey);
if (itemWidget && m_mainLayout->indexOf(itemWidget) < 0) {
itemWidget->setFixedSize(suitableSize());
auto size= suitableSize();
if (pluginItem()->pluginName() == QStringLiteral("uosai")) {
auto minSize = std::min(size.height(), size.width());
size = QSize(minSize, minSize);
}
itemWidget->setFixedSize(size);
}
}
}
@ -877,7 +884,13 @@ void QuickDockItem::showEvent(QShowEvent *event)
QWidget *itemWidget = m_pluginItem->itemWidget(m_itemKey);
if (itemWidget && m_mainLayout->indexOf(itemWidget) < 0) {
itemWidget->show();
itemWidget->setFixedSize(suitableSize());
auto size= suitableSize();
if (pluginItem()->pluginName() == QStringLiteral("uosai")) {
auto minSize = std::min(size.height(), size.width());
size = QSize(minSize, minSize);
}
itemWidget->setFixedSize(size);
itemWidget->setFixedSize(size);
m_mainLayout->addWidget(itemWidget);
}
}

View File

@ -575,15 +575,13 @@ void TrayModel::onSniTrayRemoved(const QString &servicePath)
// 如果为输入法则无需立刻删除等100毫秒后再观察是否会删除输入法(因为在100毫秒内如果是切换输入法就会很快发送add信号)
if (info.isTypeWriting) {
QTimer::singleShot(100, this, [ servicePath, this ] {
for (WinInfo info : m_winInfos) {
if (info.servicePath == servicePath) {
int index = m_winInfos.indexOf(info);
beginRemoveRows(QModelIndex(), index, index);
m_winInfos.removeOne(info);
endRemoveRows();
}
}
QTimer::singleShot(100, this, [ info, this ] {
int index = m_winInfos.indexOf(info);
beginRemoveRows(QModelIndex(), index, index);
m_winInfos.removeOne(info);
endRemoveRows();
Q_EMIT rowCountChanged();
});
} else {
beginRemoveRows(QModelIndex(), index, index);

View File

@ -6,6 +6,7 @@
#include "tray_monitor.h"
#include "quicksettingcontroller.h"
#include "pluginsiteminterface.h"
#include "utils.h"
TrayMonitor::TrayMonitor(QObject *parent)
: QObject(parent)
@ -110,6 +111,12 @@ void TrayMonitor::onSniItemsChanged()
qWarning() << __FUNCTION__ << "invalid sni service" << s;
continue;
}
if (!Utils::IS_WAYLAND_DISPLAY && s.contains("/org/ayatana/NotificationItem/")) {
qDebug() << "SNI service path created by libayatana-appindicator, duplicate tray with legacy tray";
continue;
}
Q_EMIT sniTrayAdded(s);
}
}

View File

@ -13,7 +13,6 @@
BaseTrayWidget::BaseTrayWidget(QWidget *parent, Qt::WindowFlags f)
: QWidget(parent, f)
, m_handleMouseReleaseTimer(new QTimer(this))
, m_ownerPID(0)
, m_needShow(true)
{
m_handleMouseReleaseTimer->setSingleShot(true);
@ -116,11 +115,6 @@ void BaseTrayWidget::resizeEvent(QResizeEvent *event)
}
}
uint BaseTrayWidget::getOwnerPID()
{
return this->m_ownerPID;
}
bool BaseTrayWidget::needShow()
{
return m_needShow;
@ -139,8 +133,3 @@ void BaseTrayWidget::setNeedShow(bool needShow)
update();
}
void BaseTrayWidget::setOwnerPID(uint PID)
{
this->m_ownerPID = PID;
}

View File

@ -28,7 +28,6 @@ public:
virtual void sendClick(uint8_t mouseButton, int x, int y) = 0;
virtual inline TrayType trayType() const { return TrayType::ApplicationTray; } // default is ApplicationTray
virtual bool isValid() {return true;}
uint getOwnerPID();
virtual bool needShow();
virtual void setNeedShow(bool needShow);
virtual QPixmap icon() = 0;
@ -48,14 +47,12 @@ protected:
void handleMouseRelease();
const QRect perfectIconRect() const;
void resizeEvent(QResizeEvent *event) override;
void setOwnerPID(uint PID);
private:
QTimer *m_handleMouseReleaseTimer;
QPair<QPoint, Qt::MouseButton> m_lastMouseReleaseData;
uint m_ownerPID;
bool m_needShow;
};

View File

@ -135,7 +135,7 @@ TrayGridWidget *ExpandIconWidget::popupTrayView()
TrayModel *trayModel = TrayModel::getIconModel();
gridParentView->setTrayGridView(trayView);
gridParentView->setWindowFlags(Qt::FramelessWindowHint | Qt::ToolTip | Qt::WindowStaysOnTopHint | Qt::WindowDoesNotAcceptFocus);
gridParentView->setWindowFlags(Qt::WindowDoesNotAcceptFocus);
trayView->setModel(trayModel);
trayView->setItemDelegate(trayDelegate);
trayView->setSpacing(ITEM_SPACING);

View File

@ -73,7 +73,6 @@ SNITrayItemWidget::SNITrayItemWidget(const QString &sniServicePath, QWidget *par
m_dbusPath = pair.second;
QDBusConnection conn = QDBusConnection::sessionBus();
setOwnerPID(conn.interface()->servicePid(m_dbusService));
m_sniInter = new StatusNotifierItem(m_dbusService, m_dbusPath, QDBusConnection::sessionBus(), this);
m_sniInter->setSync(false);

View File

@ -76,7 +76,6 @@ XEmbedTrayItemWidget::XEmbedTrayItemWidget(quint32 winId, xcb_connection_t *cnn,
, m_display(disp)
{
wrapWindow();
setOwnerPID(getWindowPID(winId));
m_updateTimer = new QTimer(this);
m_updateTimer->setInterval(100);
@ -521,32 +520,3 @@ bool XEmbedTrayItemWidget::isBadWindow()
return result;
}
uint XEmbedTrayItemWidget::getWindowPID(uint winId)
{
const auto display = IS_WAYLAND_DISPLAY ? XOpenDisplay(nullptr) : QX11Info::display();
if (!display) {
qWarning() << "QX11Info::connection() is " << display;
return 0;
}
Atom nameAtom = XInternAtom(display, "_NET_WM_PID", 1);
Atom type;
int format, status;
unsigned long nitems, after;
unsigned char *data;
unsigned int pid = 0;
status = XGetWindowProperty(display, winId, nameAtom, 0, 1024, 0,
XInternAtom(display, "CARDINAL", 0), &type, &format, &nitems, &after, &data);
if (status == Success && data) {
pid = *((uint*)data);
XFree(data);
}
if (IS_WAYLAND_DISPLAY)
XCloseDisplay(display);
return pid;
}

View File

@ -28,7 +28,6 @@ public:
void sendClick(uint8_t mouseButton, int x, int y) override;
static QString toXEmbedKey(quint32 winId);
static uint getWindowPID(quint32 winId);
static bool isXEmbedKey(const QString &itemKey);
virtual bool isValid() override {return m_valid;}
QPixmap icon() override;

View File

@ -393,9 +393,8 @@ void TrayManagerWindow::resetChildWidgetSize()
int dateTimeHeight = m_appPluginDatetimeWidget->height() - - m.top() - m.bottom() - trayHeight;
m_dateTimeWidget->setFixedSize(dateTimeWidth, dateTimeHeight);
m_systemPluginWidget->setFixedSize(m_systemPluginWidget->suitableSize());
int contentSpace = qMin(MAXDIFF, qMax(((Utils::isDraging() ? height() : (int)m_windowFashionSize) - MINHIGHT), 0)) + MINSPACE;
m_mainLayout->setContentsMargins(contentSpace, contentSpace, contentSpace, contentSpace);
m_mainLayout->setSpacing(contentSpace);
m_mainLayout->setContentsMargins(SINGLEROWSPACE, SINGLEROWSPACE, SINGLEROWSPACE, SINGLEROWSPACE);
m_mainLayout->setSpacing(SINGLEROWSPACE);
// 调整插件和日期窗体的位置显示,这里没有用到布局,是因为在调整任务栏位置的时候,
// 随着布局方向的改变,显示有很大的问题
@ -537,8 +536,8 @@ void TrayManagerWindow::paintEvent(QPaintEvent *event)
painter.save();
painter.setRenderHint(QPainter::Antialiasing);
painter.setClipPath(path);
painter.fillRect(rect().adjusted(1, 1, -1, -1), maskColor(102));
painter.setPen(maskColor(110));
painter.fillRect(rect().adjusted(1, 1, -1, -1), maskColor(255 * 0.1));
painter.setPen(maskColor(255 * 0.15));
painter.drawPath(path);
painter.restore();

View File

@ -816,7 +816,7 @@ void WindowManager::onRequestNotifyWindowManager()
}
XcbMisc::instance()->set_strut_partial(static_cast<xcb_window_t>(mainWindow->winId()), orientation,
static_cast<uint>(strut + WINDOWMARGIN * ratio), // 设置窗口与屏幕边缘距离,需要乘缩放
static_cast<uint>(strut), // 设置窗口与屏幕边缘距离,需要乘缩放
static_cast<uint>(strutStart), // 设置任务栏起点坐标上下为x左右为y
static_cast<uint>(strutEnd)); // 设置任务栏终点坐标上下为x左右为y
}

View File

@ -24,7 +24,7 @@ DWIDGET_USE_NAMESPACE
BluetoothMainWidget::BluetoothMainWidget(AdaptersManager *adapterManager, QWidget *parent)
: QWidget(parent)
, m_adapterManager(adapterManager)
, m_iconWidget(new QWidget(this))
, m_iconButton(new DIconButton(this))
, m_nameLabel(new QLabel(this))
, m_stateLabel(new QLabel(this))
, m_expandLabel(new QLabel(this))
@ -40,63 +40,7 @@ BluetoothMainWidget::~BluetoothMainWidget()
bool BluetoothMainWidget::eventFilter(QObject *watcher, QEvent *event)
{
if (watcher == m_iconWidget) {
switch (event->type()) {
case QEvent::Paint: {
QPainter painter(m_iconWidget);
// 在区域最中间绘制
QRect iconRect = m_iconWidget->rect();
int size = qMin(iconRect.height(), iconRect.width());
QPoint ptCenter(iconRect.center());
painter.setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
// 填充原型路径
QPainterPath path;
path.addEllipse(ptCenter, size / 2 - 1, size / 2 - 1);
// 设置黑色背景色
QColor backColor = (DGuiApplicationHelper::instance()->themeType() == DGuiApplicationHelper::ColorType::LightType ? Qt::black : Qt::white);
if (DGuiApplicationHelper::instance()->themeType() == DGuiApplicationHelper::ColorType::LightType)
backColor.setAlphaF(m_mouseEnter ? 0.2 : 0.1);
else
backColor.setAlphaF(m_mouseEnter ? 0.1 : 0.2);
painter.setBrush(backColor);
painter.fillPath(path, backColor);
// 添加图标
bool blueStatus = isOpen();
QPixmap pixmap(bluetoothIcon(blueStatus));
if (blueStatus) {
QPainter pa(&pixmap);
pa.setCompositionMode(QPainter::CompositionMode_SourceIn);
pa.fillRect(pixmap.rect(), qApp->palette().highlight());
}
painter.drawPixmap(QPoint(ptCenter.x() - pixmap.size().width() / 2, ptCenter.y() - pixmap.size().height() / 2), pixmap);
return true;
}
case QEvent::Enter: {
m_mouseEnter = true;
m_iconWidget->update();
break;
}
case QEvent::Leave: {
m_mouseEnter = false;
m_iconWidget->update();
break;
}
case QEvent::MouseButtonRelease: {
QMouseEvent *mouseevent = static_cast<QMouseEvent *>(event);
if (mouseevent->button() != Qt::LeftButton) {
return QWidget::eventFilter(watcher, event);
}
bool status = !(isOpen());
for (const Adapter *adapter : m_adapterManager->adapters())
m_adapterManager->setAdapterPowered(adapter, status);
return true;
}
default:
break;
}
}
if (watcher == m_expandLabel && event->type() == QEvent::MouseButtonRelease) {
if (watcher != m_iconButton && event->type() == QEvent::MouseButtonRelease) {
Q_EMIT requestExpand();
return true;
}
@ -106,6 +50,9 @@ bool BluetoothMainWidget::eventFilter(QObject *watcher, QEvent *event)
if (watcher == m_stateLabel && event->type() == QEvent::Resize) {
m_stateLabel->setText(QFontMetrics(m_stateLabel->font()).elidedText(m_stateLabel->text(), Qt::TextElideMode::ElideRight, m_stateLabel->width()));
}
if (watcher == m_iconButton && event->type() == QEvent::PaletteChange) {
onPaletteChanged();
}
return QWidget::eventFilter(watcher, event);
}
@ -113,7 +60,15 @@ void BluetoothMainWidget::initUi()
{
QHBoxLayout *mainLayout = new QHBoxLayout(this);
// 添加左侧的图标
m_iconWidget->setFixedWidth(36);
m_iconButton->setEnabledCircle(true);
m_iconButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
m_iconButton->setFocusPolicy(Qt::FocusPolicy::TabFocus);
m_iconButton->setIconSize({24, 24});
m_iconButton->setIcon(QIcon::fromTheme("bluetooth"));
m_iconButton->setCheckable(true);
m_iconButton->setChecked(isOpen());
onPaletteChanged();
// 添加中间的文本
QWidget *textWidget = new QWidget(this);
QVBoxLayout *textLayout = new QVBoxLayout(textWidget);
@ -146,15 +101,15 @@ void BluetoothMainWidget::initUi()
// 将所有的窗体都添加到主布局中
mainLayout->setContentsMargins(10, 0, 10, 0);
mainLayout->setSpacing(0);
mainLayout->addWidget(m_iconWidget);
mainLayout->addWidget(m_iconButton);
mainLayout->addSpacing(10);
mainLayout->addWidget(textWidget);
mainLayout->addStretch();
mainLayout->addWidget(expandWidget);
m_iconWidget->installEventFilter(this);
m_expandLabel->installEventFilter(this);
m_nameLabel->installEventFilter(this);
m_iconButton->installEventFilter(this);
}
void BluetoothMainWidget::initConnection()
@ -168,6 +123,12 @@ void BluetoothMainWidget::initConnection()
for (const Adapter *adapter : m_adapterManager->adapters())
connect(adapter, &Adapter::poweredChanged, this, &BluetoothMainWidget::onAdapterChanged);
connect(m_iconButton, &DIconButton::clicked, this, [this](){
bool status = !(isOpen());
for (const Adapter *adapter : m_adapterManager->adapters())
m_adapterManager->setAdapterPowered(adapter, status);
});
onAdapterChanged();
}
@ -202,5 +163,16 @@ void BluetoothMainWidget::onAdapterChanged()
const QString& text = bluetoothIsOpen ? tr("Turn on") : tr("Turn off");
QFontMetrics fmt{m_stateLabel->font()};
m_stateLabel->setText(fmt.elidedText(text, Qt::TextElideMode::ElideRight,m_stateLabel->width()));
m_iconWidget->update();
m_iconButton->setChecked(bluetoothIsOpen);
}
void BluetoothMainWidget::onPaletteChanged()
{
if (!m_iconButton)
return;
auto pa = m_iconButton->palette();
pa.setColor(QPalette::HighlightedText, pa.color(QPalette::Highlight));
m_iconButton->setPalette(pa);
m_iconButton->update();
}

View File

@ -6,12 +6,16 @@
#ifndef BLUETOOTHMAINWIDGET_H
#define BLUETOOTHMAINWIDGET_H
#include <DIconButton>
#include <QWidget>
class AdaptersManager;
class QLabel;
class Adapter;
DWIDGET_USE_NAMESPACE
class BluetoothMainWidget : public QWidget
{
Q_OBJECT
@ -37,10 +41,11 @@ private:
private Q_SLOTS:
void onAdapterChanged();
void onPaletteChanged();
private:
AdaptersManager *m_adapterManager;
QWidget *m_iconWidget;
DIconButton *m_iconButton;
QLabel *m_nameLabel;
QLabel *m_stateLabel;
QLabel *m_expandLabel;

View File

@ -46,5 +46,7 @@
<file>light/icons/battery-090-symbolic_20px.svg</file>
<file>light/icons/battery-100-symbolic_20px.svg</file>
<file>light/icons/battery-unknow-symbolic_20px.svg</file>
<file alias="light/texts/bluetooth_16px.svg">light/buletooth_other_light.svg</file>
<file alias="dark/texts/bluetooth_16px.svg">dark/buletooth_other_dark.svg</file>
</qresource>
</RCC>

View File

@ -1,267 +0,0 @@
// Copyright (C) 2021 ~ 2022 Uniontech Software Technology Co.,Ltd.
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#include "collaborationdevmodel.h"
#include <QIcon>
#include <QTimer>
#include <QDebug>
#include <QDBusArgument>
#include <QDBusInterface>
#include <QDBusPendingCall>
#include <QDBusServiceWatcher>
#include <DGuiApplicationHelper>
DGUI_USE_NAMESPACE
DCORE_USE_NAMESPACE
static const QString CollaborationService = "org.deepin.dde.Cooperation1";
static const QString CollaborationPath = "/org/deepin/dde/Cooperation1";
static const QString CollaborationInterface = "org.deepin.dde.Cooperation1";
static const QString ColPropertiesInterface = "org.freedesktop.DBus.Properties";
CollaborationDevModel::CollaborationDevModel(QObject *parent)
: QObject(parent)
, m_colDbusInter(new QDBusInterface(CollaborationService, CollaborationPath, CollaborationInterface, QDBusConnection::sessionBus(), this))
{
if (m_colDbusInter->isValid()) {
QList<QDBusObjectPath> paths = m_colDbusInter->property("Machines").value<QList<QDBusObjectPath>>();
for (const QDBusObjectPath& path : paths) {
CollaborationDevice *device = new CollaborationDevice(path.path(), this);
if (device->isValid())
m_devices[path.path()] = device;
else
device->deleteLater();
}
} else {
qWarning() << CollaborationService << " is invalid";
}
m_colDbusInter->connection().connect(CollaborationService, CollaborationPath, ColPropertiesInterface,
"PropertiesChanged", "sa{sv}as", this, SLOT(onPropertyChanged(QDBusMessage)));
auto *dbusWatcher = new QDBusServiceWatcher(CollaborationService, m_colDbusInter->connection(),
QDBusServiceWatcher::WatchForUnregistration, this);
connect(dbusWatcher, &QDBusServiceWatcher::serviceUnregistered, this, [this](){
qWarning() << CollaborationService << "unregistered";
clear();
});
}
void CollaborationDevModel::checkServiceValid()
{
if (!m_colDbusInter->isValid()) {
clear();
}
}
QList<CollaborationDevice *> CollaborationDevModel::devices() const
{
return m_devices.values();
}
void CollaborationDevModel::onPropertyChanged(const QDBusMessage &msg)
{
QList<QVariant> arguments = msg.arguments();
if (3 != arguments.count())
return;
QString interfaceName = msg.arguments().at(0).toString();
if (interfaceName != CollaborationInterface)
return;
QVariantMap changedProps = qdbus_cast<QVariantMap>(arguments.at(1).value<QDBusArgument>());
if (changedProps.contains("Machines")) {
QList<QDBusObjectPath> paths = m_colDbusInter->property("Machines").value<QList<QDBusObjectPath>>();
QStringList devPaths;
for (const QDBusObjectPath& path : paths) {
devPaths << path.path();
}
updateDevice(devPaths);
}
}
void CollaborationDevModel::updateDevice(const QStringList &devPaths)
{
if (devPaths.isEmpty()) {
qDeleteAll(m_devices);
m_devices.clear();
} else {
// 清除已不存在的设备
QMapIterator<QString, CollaborationDevice *> it(m_devices);
while (it.hasNext()) {
it.next();
if (!devPaths.contains(it.key())) {
it.value()->deleteLater();
m_devices.remove(it.key());
}
}
// 添加新增设备
for (const QString &path : devPaths) {
if (!m_devices.contains(path)) {
CollaborationDevice *device = new CollaborationDevice(path, this);
if (device->isValid())
m_devices[path] = device;
else
device->deleteLater();
}
}
}
emit devicesChanged();
}
void CollaborationDevModel::clear()
{
for (CollaborationDevice *device : m_devices) {
device->deleteLater();
}
m_devices.clear();
Q_EMIT devicesChanged();
}
CollaborationDevice *CollaborationDevModel::getDevice(const QString &machinePath)
{
return m_devices.value(machinePath, nullptr);
}
CollaborationDevice::CollaborationDevice(const QString &devPath, QObject *parent)
: QObject(parent)
, m_path(devPath)
, m_OS(-1)
, m_isConnected(false)
, m_isCooperated(false)
, m_isValid(false)
, m_isCooperating(false)
, m_devDbusInter(new QDBusInterface(CollaborationService, devPath, CollaborationInterface + QString(".Machine"),
QDBusConnection::sessionBus(), this))
{
if (m_devDbusInter->isValid()) {
m_name = m_devDbusInter->property("Name").toString();
m_OS = m_devDbusInter->property("OS").toInt();
m_isConnected = m_devDbusInter->property("Connected").toBool();
m_isCooperated = m_devDbusInter->property("DeviceSharing").toBool();
m_uuid = m_devDbusInter->property("UUID").toString();
m_isValid = true;
} else {
qWarning() << "CollaborationDevice devPath:" << devPath << " is invalid and get properties failed";
}
m_devDbusInter->connection().connect(CollaborationService, m_path, ColPropertiesInterface, "PropertiesChanged",
this, SLOT(onPropertyChanged(QDBusMessage)));
}
bool CollaborationDevice::isValid() const
{
// not show android device
return m_isValid && m_OS != Android;
}
QString CollaborationDevice::name() const
{
return m_name;
}
QString CollaborationDevice::uuid() const
{
return m_uuid;
}
QString CollaborationDevice::machinePath() const
{
return m_path;
}
QString CollaborationDevice::deviceIcon() const
{
switch (m_OS) {
case DeviceType::Android: {
if (DGuiApplicationHelper::instance()->themeType() == DGuiApplicationHelper::LightType)
return QString(":/ICON_Device_Headphone_dark.svg");
return QString(":/ICON_Device_Headphone.svg");
}
default: {
if (DGuiApplicationHelper::instance()->themeType() == DGuiApplicationHelper::LightType)
return QString(":/ICON_Device_Laptop_dark.svg");
return QString(":/ICON_Device_Laptop.svg");
}
}
}
bool CollaborationDevice::isConnected() const
{
return m_isConnected;
}
bool CollaborationDevice::isCooperated() const
{
return m_isCooperated;
}
void CollaborationDevice::setDeviceIsCooperating(bool isCooperating)
{
m_isCooperating = isCooperating;
}
void CollaborationDevice::onPropertyChanged(const QDBusMessage &msg)
{
QList<QVariant> arguments = msg.arguments();
if (3 != arguments.count())
return;
QString interfaceName = msg.arguments().at(0).toString();
if (interfaceName != QString("%1.Machine").arg(CollaborationInterface))
return;
QVariantMap changedProps = qdbus_cast<QVariantMap>(arguments.at(1).value<QDBusArgument>());
if (changedProps.contains("Connected")) {
bool isConnected = changedProps.value("Connected").value<bool>();
m_isConnected = isConnected;
if (isConnected && m_isCooperating) {
// paired 成功之后再去请求cooperate
requestCooperate();
}
if (!isConnected){
Q_EMIT pairedStateChanged(false);
}
} else if (changedProps.contains("DeviceSharing")) {
m_isCooperated = changedProps.value("DeviceSharing").value<bool>();
Q_EMIT pairedStateChanged(m_isCooperated);
}
}
void CollaborationDevice::requestCooperate() const
{
callMethod("RequestDeviceSharing");
}
void CollaborationDevice::disconnectDevice() const
{
callMethod("Disconnect");
}
void CollaborationDevice::connect() const
{
callMethod("Connect");
}
QDBusMessage CollaborationDevice::callMethod(const QString &methodName) const
{
if (m_devDbusInter->isValid()) {
QDBusMessage msg = m_devDbusInter->call(methodName);
qInfo() << "CollaborationDevice callMethod:" << methodName << " " << msg.errorMessage();
return msg;
}
qWarning() << "CollaborationDevice callMethod: " << methodName << " failed";
return QDBusMessage();
}

View File

@ -1,108 +0,0 @@
// Copyright (C) 2021 ~ 2022 Uniontech Software Technology Co.,Ltd.
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef COLLABORATION_DEV_MODEL_H
#define COLLABORATION_DEV_MODEL_H
#include <QMap>
#include <QObject>
class QTimer;
class QDBusInterface;
class QDBusMessage;
class CollaborationDevice;
/*!
* \brief The CollaborationDevModel class
* model
*/
class CollaborationDevModel : public QObject
{
Q_OBJECT
public:
explicit CollaborationDevModel(QObject *parent = nullptr);
signals:
void devicesChanged();
public:
void checkServiceValid();
QList<CollaborationDevice *> devices() const;
CollaborationDevice *getDevice(const QString &machinePath);
private slots:
void onPropertyChanged(const QDBusMessage &msg);
private:
void updateDevice(const QStringList &devPaths);
void clear();
private:
QDBusInterface *m_colDbusInter;
// machine path : device object
QMap<QString, CollaborationDevice *> m_devices;
};
/*!
* \brief The CollaborationDevice class
*
*/
class CollaborationDevice : public QObject
{
Q_OBJECT
public:
explicit CollaborationDevice(const QString &devPath, QObject *parent = nullptr);
signals:
void pairedStateChanged(bool);
public:
bool isValid() const;
void connect() const;
void requestCooperate() const;
void disconnectDevice() const;
QString name() const;
QString uuid() const;
QString machinePath() const;
QString deviceIcon() const;
bool isConnected() const;
bool isCooperated() const;
void setDeviceIsCooperating(bool isCooperating);
private slots:
void onPropertyChanged(const QDBusMessage &msg);
private:
QDBusMessage callMethod(const QString &methodName) const;
private:
enum DeviceType {
Other = 0,
UOS,
Linux,
Windows,
MacOS,
Android
};
QString m_path;
QString m_name;
QString m_uuid;
int m_OS;
bool m_isConnected;
bool m_isCooperated;
bool m_isValid;
// 标记任务栏点击触发协同连接
bool m_isCooperating;
QDBusInterface *m_devDbusInter;
};
#endif // COLLABORATION_DEV_MODEL_H

View File

@ -1,241 +0,0 @@
// Copyright (C) 2021 ~ 2022 Uniontech Software Technology Co.,Ltd.
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#include "devcollaborationwidget.h"
#include "collaborationdevmodel.h"
#include "devitemdelegate.h"
#include <DStyle>
#include <QMap>
#include <QTimer>
#include <QLabel>
#include <QVBoxLayout>
#include <QStandardItemModel>
#define TITLE_HEIGHT 30
#define ITEM_WIDTH 310
#define ITEM_HEIGHT 36
#define LISTVIEW_ITEM_SPACE 5
#define PER_DEGREE 14
DevCollaborationWidget::DevCollaborationWidget(QWidget *parent)
: QWidget(parent)
, m_deviceModel(new CollaborationDevModel(this))
, m_deviceListView(new DListView(this))
, m_viewItemModel(new QStandardItemModel(m_deviceListView))
, m_refreshTimer(new QTimer(this))
{
initUI();
loadDevice();
connect(m_deviceModel, &CollaborationDevModel::devicesChanged, this, &DevCollaborationWidget::loadDevice);
connect(m_deviceListView, &DListView::clicked, this, &DevCollaborationWidget::itemClicked);
connect(m_refreshTimer, &QTimer::timeout, this, &DevCollaborationWidget::refreshViewItem);
}
void DevCollaborationWidget::showEvent(QShowEvent *event)
{
m_deviceModel->checkServiceValid();
QWidget::showEvent(event);
}
void DevCollaborationWidget::resizeEvent(QResizeEvent *event)
{
Q_EMIT sizeChanged();
QWidget::resizeEvent(event);
}
void DevCollaborationWidget::initUI()
{
m_deviceListView->setModel(m_viewItemModel);
QLabel *title = new QLabel(tr("PC collaboration"), this);
title->setFixedHeight(TITLE_HEIGHT);
QHBoxLayout *hLayout = new QHBoxLayout();
hLayout->setContentsMargins(10, 0, 0, 0);
hLayout->addWidget(title);
QVBoxLayout *mainLayout = new QVBoxLayout();
mainLayout->setMargin(0);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setSpacing(0);
mainLayout->addLayout(hLayout);
mainLayout->addWidget(m_deviceListView);
setLayout(mainLayout);
m_deviceListView->setContentsMargins(0, 0, 0, 0);
m_deviceListView->setFrameShape(QFrame::NoFrame);
m_deviceListView->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
m_deviceListView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
m_deviceListView->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
m_deviceListView->setResizeMode(QListView::Adjust);
m_deviceListView->setViewportMargins(0, 0, 0, 0);
m_deviceListView->setSpacing(LISTVIEW_ITEM_SPACE);
m_deviceListView->setEditTriggers(QAbstractItemView::NoEditTriggers);
m_deviceListView->setItemDelegate(new DevItemDelegate(this));
}
void DevCollaborationWidget::loadDevice()
{
if (!m_deviceListView->count()) {
for (CollaborationDevice *device : m_deviceModel->devices()) {
addItem(device);
}
} else {
updateDeviceListView();
}
if(!m_deviceListView->count()) {
m_deviceListView->hide();
} else {
if (!m_deviceListView->isVisible())
m_deviceListView->setVisible(true);
m_deviceListView->setFixedSize(ITEM_WIDTH, m_deviceListView->count() * ITEM_HEIGHT + LISTVIEW_ITEM_SPACE * (m_deviceListView->count() * 2));
}
resetWidgetSize();
}
void DevCollaborationWidget::addItem(const CollaborationDevice *device)
{
if (!device)
return;
QStandardItem *item = new QStandardItem();
DevItemDelegate::DevItemData data;
data.checkedIconPath = device->deviceIcon(); // TODO
data.text = device->name();
data.iconPath = device->deviceIcon();
int resultState = device->isCooperated() ? DevItemDelegate::Connected : DevItemDelegate::None;
item->setData(QVariant::fromValue(data), DevItemDelegate::StaticDataRole);
item->setData(device->machinePath(), DevItemDelegate::MachinePathDataRole);
item->setData(0, DevItemDelegate::DegreeDataRole);
item->setData(resultState, DevItemDelegate::ResultDataRole);
m_viewItemModel->appendRow(item);
m_deviceItemMap[device->machinePath()] = item;
connect(device, &CollaborationDevice::pairedStateChanged, this, &DevCollaborationWidget::itemStatusChanged);
}
void DevCollaborationWidget::updateDeviceListView()
{
QList<CollaborationDevice *> devices = m_deviceModel->devices();
if (devices.isEmpty()) {
m_deviceListView->removeItems(0, m_deviceListView->count());
m_deviceItemMap.clear();
m_connectingDevices.clear();
return;
}
// 删除不存在设备
for (int row = 0; row < m_deviceListView->count(); row++) {
QStandardItem *item = m_viewItemModel->item(row);
if (!item)
continue;
QString machinePath = item->data(DevItemDelegate::MachinePathDataRole).toString();
if (m_deviceModel->getDevice(machinePath))
continue;
m_deviceListView->removeItem(row);
if (m_deviceItemMap.contains(machinePath)) {
m_deviceItemMap.remove(machinePath);
}
if (m_connectingDevices.contains(machinePath)) {
m_connectingDevices.removeAll(machinePath);
}
}
// 处理新增
for (CollaborationDevice *device : devices) {
if (!m_deviceItemMap.contains(device->machinePath())) {
addItem(device);
}
}
}
void DevCollaborationWidget::resetWidgetSize()
{
int height = TITLE_HEIGHT + (m_deviceListView->count() ? m_deviceListView->height() : 0);
setFixedSize(ITEM_WIDTH, height);
}
void DevCollaborationWidget::itemClicked(const QModelIndex &index)
{
QString machinePath = index.data(DevItemDelegate::MachinePathDataRole).toString();
CollaborationDevice *device = m_deviceModel->getDevice(machinePath);
if (!device)
return;
if (!device->isConnected()) {
device->setDeviceIsCooperating(true);
device->connect();
if (!m_connectingDevices.contains(machinePath))
m_connectingDevices.append(machinePath);
} else if (!device->isCooperated()) {
device->requestCooperate();
if (!m_connectingDevices.contains(machinePath))
m_connectingDevices.append(machinePath);
} else if (device->isCooperated()) {
device->disconnectDevice();
if (m_connectingDevices.contains(machinePath))
m_connectingDevices.removeOne(machinePath);
}
if (!m_connectingDevices.isEmpty() && !m_refreshTimer->isActive())
m_refreshTimer->start(80);
}
void DevCollaborationWidget::itemStatusChanged()
{
CollaborationDevice *device = qobject_cast<CollaborationDevice *>(sender());
if (!device)
return;
device->setDeviceIsCooperating(false);
QString machinePath = device->machinePath();
if (m_deviceItemMap.contains(machinePath) && m_deviceItemMap[machinePath]) {
// 更新item的连接状态
int resultState = device->isCooperated() ? DevItemDelegate::Connected : DevItemDelegate::None;
m_deviceItemMap[machinePath]->setData(resultState, DevItemDelegate::ResultDataRole);
if (device->isCooperated() || !device->isConnected())
m_deviceItemMap[machinePath]->setData(0, DevItemDelegate::DegreeDataRole);
m_deviceListView->update(m_deviceItemMap[machinePath]->index());
if ((resultState == DevItemDelegate::Connected || !device->isConnected()) && m_connectingDevices.contains(machinePath)) {
m_connectingDevices.removeAll(machinePath);
}
}
}
void DevCollaborationWidget::refreshViewItem()
{
if (m_connectingDevices.isEmpty()) {
m_refreshTimer->stop();
return;
}
for (const QString &machinePath : m_connectingDevices) {
if (m_deviceItemMap.contains(machinePath) && m_deviceItemMap[machinePath]) {
int degree = m_deviceItemMap[machinePath]->data(DevItemDelegate::DegreeDataRole).toInt();
degree += PER_DEGREE; // 递进值
m_deviceItemMap[machinePath]->setData(DevItemDelegate::Connecting, DevItemDelegate::ResultDataRole);
m_deviceItemMap[machinePath]->setData(degree, DevItemDelegate::DegreeDataRole);
m_deviceListView->update(m_deviceItemMap[machinePath]->index());
}
}
}

View File

@ -1,57 +0,0 @@
// Copyright (C) 2021 ~ 2022 Uniontech Software Technology Co.,Ltd.
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef DEVICE_COLLABORATION_WIDGET_H
#define DEVICE_COLLABORATION_WIDGET_H
#include <QWidget>
#include <DListView>
DWIDGET_USE_NAMESPACE
class CollaborationDevice;
class CollaborationDevModel;
/*!
* \brief The DevCollaborationWidget class
*
*/
class DevCollaborationWidget : public QWidget
{
Q_OBJECT
public:
explicit DevCollaborationWidget(QWidget *parent = nullptr);
signals:
void sizeChanged();
protected:
void showEvent(QShowEvent *event) override;
void resizeEvent(QResizeEvent *event) override;
private slots:
void loadDevice();
void itemClicked(const QModelIndex &index);
void itemStatusChanged();
void refreshViewItem();
private:
void initUI();
void updateDeviceListView();
void addItem(const CollaborationDevice *device);
void resetWidgetSize();
private:
CollaborationDevModel *m_deviceModel;
DListView *m_deviceListView;
QStandardItemModel *m_viewItemModel;
QMap<QString, QStandardItem *> m_deviceItemMap;
QStringList m_connectingDevices;
QTimer *m_refreshTimer;
};
#endif // DEVICE_COLLABORATION_WIDGET_H

View File

@ -1,164 +0,0 @@
// Copyright (C) 2021 ~ 2022 Uniontech Software Technology Co.,Ltd.
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#include "devitemdelegate.h"
#include <QtMath>
#include <QPainter>
#include <QPainterPath>
#include <DFontSizeManager>
#define RADIUS_VALUE 10
#define ITEM_SPACE 20
#define ICON_WIDTH 16
#define ICON_HEIGHT 16
#define TEXT_RECT_HEIGHT 20
#define ITEM_HEIGHT 36
#define INDICATOR_SHADOW_OFFSET 10
DevItemDelegate::DevItemDelegate(QObject *parent)
: QStyledItemDelegate(parent)
{
}
void DevItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
if (!index.isValid())
return;
painter->setRenderHint(QPainter::Antialiasing);
QVariant var = index.data(StaticDataRole);
DevItemData itemData = var.value<DevItemData>();
QRect rect = option.rect;
QPen pen;
pen.setWidth(2);
// 鼠标悬停
if (option.state.testFlag(QStyle::State_MouseOver)) {
pen.setColor(QColor("#EBECED"));
painter->setPen(pen);
painter->setBrush(QColor("#EBECED"));
painter->drawRoundedRect(rect, RADIUS_VALUE, RADIUS_VALUE);
}
// 选中背景(连接上和选中)
int result = index.data(ResultDataRole).toInt();
if (option.state.testFlag(QStyle::State_Selected) && result == Connected) {
pen.setColor(QColor("#0081FF"));
painter->setPen(pen);
painter->setBrush(QColor("#0081FF"));
painter->drawRoundedRect(rect, RADIUS_VALUE, RADIUS_VALUE);
} else {
// 绘制默认背景
pen.setColor(QColor("#EBECED"));
painter->setPen(pen);
painter->setBrush(QColor("#EBECED"));
painter->drawRoundedRect(rect, RADIUS_VALUE, RADIUS_VALUE);
}
bool selected = (option.state.testFlag(QStyle::State_Selected) && result == Connected);
// 绘制Icon
QString imagePath = selected ? itemData.checkedIconPath : itemData.iconPath;
QRect iconRect = QRect(rect.left() + ITEM_SPACE, rect.top() + rect.height() / 2 - ICON_HEIGHT / 2,
ICON_WIDTH, ICON_HEIGHT);
painter->drawImage(iconRect, QImage(imagePath));
// 绘制text
QFont font = Dtk::Widget::DFontSizeManager::instance()->t4();
painter->setFont(font);
pen.setColor(selected ? Qt::white : Qt::black);
painter->setPen(pen);
int textRectWidth = rect.width() - ITEM_SPACE - iconRect.width() - iconRect.width() - ITEM_SPACE;
QRect textRect = QRect(iconRect.right() + ITEM_SPACE, rect.top() + 2,
textRectWidth, rect.height());
QFontMetrics fm(font);
QString itemText = fm.elidedText(itemData.text, Qt::ElideRight, textRectWidth);
painter->drawText(textRect, itemText);
switch (result) {
case ResultState::Connected:
drawResultState(painter, rect);
break;
case ResultState::Connecting:
drawWaitingState(painter, rect, index.data(DegreeDataRole).toInt());
break;
default:
break;
}
}
QSize DevItemDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(index)
return QSize(option.rect.width(), ITEM_HEIGHT);
}
void DevItemDelegate::drawWaitingState(QPainter *painter, const QRect &rect, int degree) const
{
int left = rect.width() - ITEM_SPACE;
int top = rect.top() + rect.height() / 2 - ICON_HEIGHT / 2;
QRect newRect(left, top, ICON_WIDTH, ICON_HEIGHT);
painter->setRenderHint(QPainter::Antialiasing, true);
QList<QList<QColor>> indicatorColors;
for (int i = 0; i < 3; i++)
indicatorColors << createDefaultIndicatorColorList(QColor("#0081FF"));
double radius = 16 * 0.66;
auto center = QRectF(newRect).center();
auto indicatorRadius = radius / 2 / 2 * 1.1;
auto indicatorDegreeDelta = 360 / indicatorColors.count();
for (int i = 0; i < indicatorColors.count(); ++i) {
QList<QColor> colors = indicatorColors.value(i);
for (int j = 0; j < colors.count(); ++j) {
double degreeCurrent = degree - j * INDICATOR_SHADOW_OFFSET + indicatorDegreeDelta * i;
auto x = (radius - indicatorRadius) * qCos(qDegreesToRadians(degreeCurrent));
auto y = (radius - indicatorRadius) * qSin(qDegreesToRadians(degreeCurrent));
x = center.x() + x;
y = center.y() + y;
auto tl = QPointF(x - 1 * indicatorRadius, y - 1 * indicatorRadius);
QRectF rf(tl.x(), tl.y(), indicatorRadius * 2, indicatorRadius * 2);
QPainterPath path;
path.addEllipse(rf);
painter->fillPath(path, colors.value(j));
}
}
}
void DevItemDelegate::drawResultState(QPainter *painter, const QRect &rect) const
{
// 绘制对勾,14x12
int left = rect.width() - ITEM_SPACE;
int top = rect.top() + rect.height() / 2 - 6;
QPainterPath path;
path.moveTo(left, top + 6);
path.lineTo(left + 4, top + 11);
path.lineTo(left + 12, top + 1);
painter->drawPath(path);
}
QList<QColor> DevItemDelegate::createDefaultIndicatorColorList(QColor color) const
{
QList<QColor> colors;
QList<int> opacitys;
opacitys << 100 << 30 << 15 << 10 << 5 << 4 << 3 << 2 << 1;
for (int i = 0; i < opacitys.count(); ++i) {
color.setAlpha(255 * opacitys.value(i) / 100);
colors << color;
}
return colors;
}

View File

@ -1,52 +0,0 @@
// Copyright (C) 2021 ~ 2022 Uniontech Software Technology Co.,Ltd.
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef DEVITEMDELEGATE_H
#define DEVITEMDELEGATE_H
#include <DStyledItemDelegate>
/*!
* \brief The DevItemDelegate class
*/
class DevItemDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
enum DevItemDataRole {
StaticDataRole = Qt::UserRole + 1, // 静态信息
MachinePathDataRole = Qt::UserRole + 2, // machinePath, 可唯一代表一个设备
DegreeDataRole = Qt::UserRole + 3, // degree 绘制waiting使用的参数
ResultDataRole = Qt::UserRole + 4 // 连接结果
};
enum ResultState {
None,
Connecting,
Connected
};
struct DevItemData {
QString checkedIconPath;
QString iconPath;
QString text;
};
public:
explicit DevItemDelegate(QObject *parent = nullptr);
protected:
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
private:
void drawWaitingState(QPainter *painter, const QRect &rect, int degree) const;
void drawResultState(QPainter *painter, const QRect &rect) const;
QList<QColor> createDefaultIndicatorColorList(QColor color) const;
};
Q_DECLARE_METATYPE(DevItemDelegate::DevItemData)
#endif // DEVITEMDELEGATE_H

View File

@ -4,7 +4,6 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
#include "displaysettingwidget.h"
#include "devcollaborationwidget.h"
#include <QPushButton>
#include <QVBoxLayout>
@ -16,12 +15,10 @@ const int ItemSpacing = 10;
DisplaySettingWidget::DisplaySettingWidget(BrightnessModel *model, QWidget *parent)
: QWidget(parent)
, m_brightnessAdjWidget(new BrightnessAdjWidget(model, this))
, m_collaborationWidget(new DevCollaborationWidget(this))
, m_settingBtn(new QPushButton(tr("Multi-Screen Collaboration"), this))
, m_settingBtn(new QPushButton(tr("Display Settings"), this))
{
initUI();
connect(m_settingBtn, &QPushButton::clicked, this, [ this ](){
connect(m_settingBtn, &QPushButton::clicked, this, [ this ](){
DDBusSender().service("org.deepin.dde.ControlCenter1")
.path("/org/deepin/dde/ControlCenter1")
.interface("org.deepin.dde.ControlCenter1")
@ -38,15 +35,12 @@ void DisplaySettingWidget::initUI()
mainLayout->setSpacing(ItemSpacing);
mainLayout->addWidget(m_brightnessAdjWidget);
mainLayout->addWidget(m_collaborationWidget);
mainLayout->addWidget(m_settingBtn);
mainLayout->addStretch();
setLayout(mainLayout);
resizeWidgetHeight();
connect(m_collaborationWidget, &DevCollaborationWidget::sizeChanged,
this, &DisplaySettingWidget::resizeWidgetHeight);
connect(m_brightnessAdjWidget, &BrightnessAdjWidget::sizeChanged,
this, &DisplaySettingWidget::resizeWidgetHeight);
}
@ -55,5 +49,5 @@ void DisplaySettingWidget::resizeWidgetHeight()
{
QMargins margins = this->contentsMargins();
setFixedHeight(margins.top() + margins.bottom() + m_brightnessAdjWidget->height() +
m_collaborationWidget->height() + m_settingBtn->height() + ItemSpacing * 2);
m_settingBtn->height() + ItemSpacing);
}

View File

@ -12,7 +12,6 @@
class QPushButton;
class BrightnessAdjWidget;
class DevCollaborationWidget;
/*!
* \brief The DisplaySettingWidget class
@ -34,7 +33,6 @@ private:
private:
BrightnessAdjWidget *m_brightnessAdjWidget; // 亮度调整
DevCollaborationWidget *m_collaborationWidget; // 跨端协同
QPushButton *m_settingBtn; // 设置按钮
};

View File

@ -145,12 +145,6 @@ QIcon MultitaskingPlugin::icon(const DockPart &dockPart, DGuiApplicationHelper::
if (dockPart == DockPart::DCCSetting) {
auto icon = QIcon::fromTheme("dcc-multitasking-view", QIcon(":/icons/dcc-multitasking-view.svg"));
QPixmap pixmap = icon.pixmap(QSize(18, 18));
if (themeType == DGuiApplicationHelper::ColorType::LightType)
return pixmap;
QPainter pa(&pixmap);
pa.setCompositionMode(QPainter::CompositionMode_SourceIn);
pa.fillRect(pixmap.rect(), Qt::white);
return pixmap;
}

View File

@ -146,16 +146,8 @@ void OnboardPlugin::pluginSettingsChanged()
QIcon OnboardPlugin::icon(const DockPart &dockPart, DGuiApplicationHelper::ColorType themeType)
{
if (dockPart == DockPart::DCCSetting) {
if (themeType == DGuiApplicationHelper::ColorType::LightType)
return QIcon(":/icons/icon/dcc_keyboard.svg");
QPixmap pixmap(":/icons/icon/dcc_keyboard.svg");
QPainter pa(&pixmap);
pa.setCompositionMode(QPainter::CompositionMode_SourceIn);
pa.fillRect(pixmap.rect(), Qt::white);
return pixmap;
}
if (dockPart == DockPart::DCCSetting)
return QIcon(":/icons/icon/dcc_keyboard.svg");
if (dockPart == DockPart::QuickPanel)
return m_onboardItem->iconPixmap(QSize(24, 24), themeType);

View File

@ -38,6 +38,7 @@
#include <QPushButton>
#include <QFontMetrics>
#include <QPainter>
#include <QStringLiteral>
#define ICONWIDTH 24
#define ICONHEIGHT 24
@ -92,12 +93,22 @@ void QuickSettingItem::paintEvent(QPaintEvent *e)
painter.setClipPath(path);
// 绘制背景色
QColor backColor(Qt::white);
if (DGuiApplicationHelper::instance()->themeType() == DGuiApplicationHelper::ColorType::DarkType) {
backColor = Qt::black;
}
backColor.setAlphaF(0.5);
backColor.setAlphaF(0.1);
DPalette dpa = DPaletteHelper::instance()->palette(this);
painter.fillRect(rect(), backColor);
QColor borderColor(Qt::black);
borderColor.setAlphaF(0.2);
if (DGuiApplicationHelper::instance()->themeType() == DGuiApplicationHelper::DarkType) {
borderColor = QColor(Qt::white);
borderColor.setAlphaF(0.15);
}
painter.save();
painter.setPen(borderColor);
painter.drawRoundedRect(rect(), RADIUS, RADIUS);
painter.restore();
}
QColor QuickSettingItem::foregroundColor() const
@ -115,6 +126,7 @@ QColor QuickSettingItem::foregroundColor() const
QuickSettingItem *QuickSettingFactory::createQuickWidget(PluginsItemInterface * const pluginInter, const QString &itemKey)
{
if (pluginInter->pluginName() == QStringLiteral("uosai")) return nullptr;
// 如果显示在面板的图标或者Widget为空则不让显示(例如电池插件)
if (!(pluginInter->flags() & PluginFlag::Type_Common))
return nullptr;

View File

@ -100,6 +100,7 @@ QWidget *StandardQuickItem::iconWidget(QWidget *parent)
layout->setAlignment(Qt::AlignVCenter);
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(0);
layout->addSpacing(6);
QLabel *imageLabel = new QLabel(widget);
imageLabel->setObjectName("imageLabel");
imageLabel->setFixedHeight(ICONHEIGHT);
@ -113,7 +114,7 @@ QWidget *StandardQuickItem::iconWidget(QWidget *parent)
labelText->setFixedWidth(70);
updatePluginName(labelText);
layout->addWidget(imageLabel);
layout->addSpacing(7);
layout->addSpacing(4);
layout->addWidget(labelText);
}

View File

@ -127,12 +127,6 @@ QIcon ShowDesktopPlugin::icon(const DockPart &dockPart, DGuiApplicationHelper::C
auto loadsvg = []{ return ImageUtil::loadSvg(":/icons/dcc-show-desktop.svg", QSize(18, 18));};
auto icon = QIcon::fromTheme("dcc-show-desktop", loadsvg());
QPixmap pixmap = icon.pixmap(QSize(18, 18));
if (themeType == DGuiApplicationHelper::ColorType::LightType)
return pixmap;
QPainter pa(&pixmap);
pa.setCompositionMode(QPainter::CompositionMode_SourceIn);
pa.fillRect(pixmap.rect(), Qt::white);
return pixmap;
}

View File

@ -20,6 +20,7 @@ find_package(DtkWidget REQUIRED)
# add_definitions("-DDISABLE_POWER_OPTIONS")
#endif()
pkg_check_modules(QGSettings REQUIRED IMPORTED_TARGET gsettings-qt)
pkg_check_modules(Xcursor REQUIRED IMPORTED_TARGET xcursor)
add_definitions("${QT_DEFINITIONS} -DQT_PLUGIN")
add_library(${PLUGIN_NAME} SHARED ${SRCS} shutdown.qrc)
@ -30,6 +31,7 @@ target_include_directories(${PLUGIN_NAME} PUBLIC ${DtkWidget_INCLUDE_DIRS}
target_link_libraries(${PLUGIN_NAME} PRIVATE
${DtkWidget_LIBRARIES}
PkgConfig::QGSettings
PkgConfig::Xcursor
Qt5::Widgets
Qt5::DBus
Qt5::Svg)

View File

@ -277,13 +277,6 @@ QIcon ShutdownPlugin::icon(const DockPart &dockPart, DGuiApplicationHelper::Colo
if (dockPart == DockPart::DCCSetting) {
QString iconFile(":/icons/resources/icons/dcc_shutdown.svg");
auto pixmap = ImageUtil::loadSvg(iconFile, QSize(18, 18));
if (themeType == DGuiApplicationHelper::ColorType::LightType)
return pixmap;
QPainter pa(&pixmap);
pa.setCompositionMode(QPainter::CompositionMode_SourceIn);
pa.fillRect(pixmap.rect(), Qt::white);
return pixmap;
}

View File

@ -172,16 +172,10 @@ void TrashPlugin::pluginSettingsChanged()
refreshPluginItemsVisible();
}
QIcon TrashPlugin::icon(const DockPart &dockPart, DGuiApplicationHelper::ColorType themeType)
QIcon TrashPlugin::icon(const DockPart &dockPart, DGuiApplicationHelper::ColorType )
{
if (dockPart == DockPart::DCCSetting) {
auto pixmap = ImageUtil::loadSvg(":/icons/dcc_trash.svg", QSize(18, 18));
if (themeType == DGuiApplicationHelper::ColorType::LightType)
return pixmap;
QPainter pa(&pixmap);
pa.setCompositionMode(QPainter::CompositionMode_SourceIn);
pa.fillRect(pixmap.rect(), Qt::white);
return pixmap;
}

View File

@ -0,0 +1,792 @@
/**
* This file is generated by dconfig2cpp.
* Command line arguments: ./dconfig2cpp -p ./dde-dock/toolGenerate/dconfig2cpp ./dde-dock/configs/com.deepin.dde.dock.json
* Generation time: 2025-01-14T10:55:02
* JSON file version: 1.0
*
* WARNING: DO NOT MODIFY THIS FILE MANUALLY.
* If you need to change the content, please modify the dconfig2cpp tool.
*/
#ifndef COM_DEEPIN_DDE_DOCK_H
#define COM_DEEPIN_DDE_DOCK_H
#include <QThread>
#include <QVariant>
#include <QDebug>
#include <QAtomicPointer>
#include <QAtomicInteger>
#include <DConfig>
class com_deepin_dde_dock : public QObject {
Q_OBJECT
Q_PROPERTY(double Delay_Plugins_Time READ Delay_Plugins_Time WRITE setDelay_Plugins_Time NOTIFY Delay_Plugins_TimeChanged)
Q_PROPERTY(QString Display_Mode READ Display_Mode WRITE setDisplay_Mode NOTIFY Display_ModeChanged)
Q_PROPERTY(QList<QVariant> Dock_Quick_Plugins READ Dock_Quick_Plugins WRITE setDock_Quick_Plugins NOTIFY Dock_Quick_PluginsChanged)
Q_PROPERTY(QList<QVariant> Dock_Quick_Tray_Name READ Dock_Quick_Tray_Name WRITE setDock_Quick_Tray_Name NOTIFY Dock_Quick_Tray_NameChanged)
Q_PROPERTY(double Dock_Show_Window_name READ Dock_Show_Window_name WRITE setDock_Show_Window_name NOTIFY Dock_Show_Window_nameChanged)
Q_PROPERTY(QList<QVariant> Docked_Apps READ Docked_Apps WRITE setDocked_Apps NOTIFY Docked_AppsChanged)
Q_PROPERTY(QString Force_Quit_App READ Force_Quit_App WRITE setForce_Quit_App NOTIFY Force_Quit_AppChanged)
Q_PROPERTY(QString Hide_Mode READ Hide_Mode WRITE setHide_Mode NOTIFY Hide_ModeChanged)
Q_PROPERTY(double Hide_Timeout READ Hide_Timeout WRITE setHide_Timeout NOTIFY Hide_TimeoutChanged)
Q_PROPERTY(double Icon_Size READ Icon_Size WRITE setIcon_Size NOTIFY Icon_SizeChanged)
Q_PROPERTY(QString Plugin_Settings READ Plugin_Settings WRITE setPlugin_Settings NOTIFY Plugin_SettingsChanged)
Q_PROPERTY(QString Position READ Position WRITE setPosition NOTIFY PositionChanged)
Q_PROPERTY(QList<QVariant> Recent_App READ Recent_App WRITE setRecent_App NOTIFY Recent_AppChanged)
Q_PROPERTY(bool Show_MultiWindow READ Show_MultiWindow WRITE setShow_MultiWindow NOTIFY Show_MultiWindowChanged)
Q_PROPERTY(bool Show_Recent READ Show_Recent WRITE setShow_Recent NOTIFY Show_RecentChanged)
Q_PROPERTY(double Show_Timeout READ Show_Timeout WRITE setShow_Timeout NOTIFY Show_TimeoutChanged)
Q_PROPERTY(QList<QVariant> Win_Icon_Preferred_Apps READ Win_Icon_Preferred_Apps WRITE setWin_Icon_Preferred_Apps NOTIFY Win_Icon_Preferred_AppsChanged)
Q_PROPERTY(double Window_Size_Efficient READ Window_Size_Efficient WRITE setWindow_Size_Efficient NOTIFY Window_Size_EfficientChanged)
Q_PROPERTY(double Window_Size_Fashion READ Window_Size_Fashion WRITE setWindow_Size_Fashion NOTIFY Window_Size_FashionChanged)
public:
explicit com_deepin_dde_dock(QThread *thread, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr)
: QObject(parent) {
if (!thread->isRunning()) {
qWarning() << QStringLiteral("Warning: The provided thread is not running.");
}
Q_ASSERT(QThread::currentThread() != thread);
auto worker = new QObject();
worker->moveToThread(thread);
QMetaObject::invokeMethod(worker, [=]() {
auto config = DTK_CORE_NAMESPACE::DConfig::create(appId, name, subpath, nullptr);
if (!config) {
qWarning() << QStringLiteral("Failed to create DConfig instance.");
worker->deleteLater();
return;
}
config->moveToThread(QThread::currentThread());
initialize(config);
worker->deleteLater();
});
}
explicit com_deepin_dde_dock(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr)
: QObject(parent) {
if (!thread->isRunning()) {
qWarning() << QStringLiteral("Warning: The provided thread is not running.");
}
Q_ASSERT(QThread::currentThread() != thread);
auto worker = new QObject();
worker->moveToThread(thread);
QMetaObject::invokeMethod(worker, [=]() {
auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, appId, name, subpath, nullptr);
if (!config) {
qWarning() << QStringLiteral("Failed to create DConfig instance.");
worker->deleteLater();
return;
}
config->moveToThread(QThread::currentThread());
initialize(config);
worker->deleteLater();
});
}
explicit com_deepin_dde_dock(QThread *thread, const QString &name, const QString &subpath, QObject *parent = nullptr)
: QObject(parent) {
if (!thread->isRunning()) {
qWarning() << QStringLiteral("Warning: The provided thread is not running.");
}
Q_ASSERT(QThread::currentThread() != thread);
auto worker = new QObject();
worker->moveToThread(thread);
QMetaObject::invokeMethod(worker, [=]() {
auto config = DTK_CORE_NAMESPACE::DConfig::create(name, subpath, nullptr);
if (!config) {
qWarning() << QStringLiteral("Failed to create DConfig instance.");
worker->deleteLater();
return;
}
config->moveToThread(QThread::currentThread());
initialize(config);
worker->deleteLater();
});
}
explicit com_deepin_dde_dock(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &name, const QString &subpath, QObject *parent = nullptr)
: QObject(parent) {
if (!thread->isRunning()) {
qWarning() << QStringLiteral("Warning: The provided thread is not running.");
}
Q_ASSERT(QThread::currentThread() != thread);
auto worker = new QObject();
worker->moveToThread(thread);
QMetaObject::invokeMethod(worker, [=]() {
auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, name, subpath, nullptr);
if (!config) {
qWarning() << QStringLiteral("Failed to create DConfig instance.");
worker->deleteLater();
return;
}
config->moveToThread(QThread::currentThread());
initialize(config);
worker->deleteLater();
});
}
~com_deepin_dde_dock() {
if (m_config.loadRelaxed()) {
m_config.loadRelaxed()->deleteLater();
}
}
double Delay_Plugins_Time() const {
return p_Delay_Plugins_Time;
}
void setDelay_Plugins_Time(const double &value) {
auto oldValue = p_Delay_Plugins_Time;
p_Delay_Plugins_Time = value;
markPropertySet(0);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Delay_Plugins_Time"), value);
});
}
if (p_Delay_Plugins_Time != oldValue) {
Q_EMIT Delay_Plugins_TimeChanged();
}
}
QString Display_Mode() const {
return p_Display_Mode;
}
void setDisplay_Mode(const QString &value) {
auto oldValue = p_Display_Mode;
p_Display_Mode = value;
markPropertySet(1);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Display_Mode"), value);
});
}
if (p_Display_Mode != oldValue) {
Q_EMIT Display_ModeChanged();
}
}
QList<QVariant> Dock_Quick_Plugins() const {
return p_Dock_Quick_Plugins;
}
void setDock_Quick_Plugins(const QList<QVariant> &value) {
auto oldValue = p_Dock_Quick_Plugins;
p_Dock_Quick_Plugins = value;
markPropertySet(2);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Dock_Quick_Plugins"), value);
});
}
if (p_Dock_Quick_Plugins != oldValue) {
Q_EMIT Dock_Quick_PluginsChanged();
}
}
QList<QVariant> Dock_Quick_Tray_Name() const {
return p_Dock_Quick_Tray_Name;
}
void setDock_Quick_Tray_Name(const QList<QVariant> &value) {
auto oldValue = p_Dock_Quick_Tray_Name;
p_Dock_Quick_Tray_Name = value;
markPropertySet(3);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Dock_Quick_Tray_Name"), value);
});
}
if (p_Dock_Quick_Tray_Name != oldValue) {
Q_EMIT Dock_Quick_Tray_NameChanged();
}
}
double Dock_Show_Window_name() const {
return p_Dock_Show_Window_name;
}
void setDock_Show_Window_name(const double &value) {
auto oldValue = p_Dock_Show_Window_name;
p_Dock_Show_Window_name = value;
markPropertySet(4);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Dock_Show_Window_name"), value);
});
}
if (p_Dock_Show_Window_name != oldValue) {
Q_EMIT Dock_Show_Window_nameChanged();
}
}
QList<QVariant> Docked_Apps() const {
return p_Docked_Apps;
}
void setDocked_Apps(const QList<QVariant> &value) {
auto oldValue = p_Docked_Apps;
p_Docked_Apps = value;
markPropertySet(5);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Docked_Apps"), value);
});
}
if (p_Docked_Apps != oldValue) {
Q_EMIT Docked_AppsChanged();
}
}
QString Force_Quit_App() const {
return p_Force_Quit_App;
}
void setForce_Quit_App(const QString &value) {
auto oldValue = p_Force_Quit_App;
p_Force_Quit_App = value;
markPropertySet(6);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Force_Quit_App"), value);
});
}
if (p_Force_Quit_App != oldValue) {
Q_EMIT Force_Quit_AppChanged();
}
}
QString Hide_Mode() const {
return p_Hide_Mode;
}
void setHide_Mode(const QString &value) {
auto oldValue = p_Hide_Mode;
p_Hide_Mode = value;
markPropertySet(7);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Hide_Mode"), value);
});
}
if (p_Hide_Mode != oldValue) {
Q_EMIT Hide_ModeChanged();
}
}
double Hide_Timeout() const {
return p_Hide_Timeout;
}
void setHide_Timeout(const double &value) {
auto oldValue = p_Hide_Timeout;
p_Hide_Timeout = value;
markPropertySet(8);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Hide_Timeout"), value);
});
}
if (p_Hide_Timeout != oldValue) {
Q_EMIT Hide_TimeoutChanged();
}
}
double Icon_Size() const {
return p_Icon_Size;
}
void setIcon_Size(const double &value) {
auto oldValue = p_Icon_Size;
p_Icon_Size = value;
markPropertySet(9);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Icon_Size"), value);
});
}
if (p_Icon_Size != oldValue) {
Q_EMIT Icon_SizeChanged();
}
}
QString Plugin_Settings() const {
return p_Plugin_Settings;
}
void setPlugin_Settings(const QString &value) {
auto oldValue = p_Plugin_Settings;
p_Plugin_Settings = value;
markPropertySet(10);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Plugin_Settings"), value);
});
}
if (p_Plugin_Settings != oldValue) {
Q_EMIT Plugin_SettingsChanged();
}
}
QString Position() const {
return p_Position;
}
void setPosition(const QString &value) {
auto oldValue = p_Position;
p_Position = value;
markPropertySet(11);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Position"), value);
});
}
if (p_Position != oldValue) {
Q_EMIT PositionChanged();
}
}
QList<QVariant> Recent_App() const {
return p_Recent_App;
}
void setRecent_App(const QList<QVariant> &value) {
auto oldValue = p_Recent_App;
p_Recent_App = value;
markPropertySet(12);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Recent_App"), value);
});
}
if (p_Recent_App != oldValue) {
Q_EMIT Recent_AppChanged();
}
}
bool Show_MultiWindow() const {
return p_Show_MultiWindow;
}
void setShow_MultiWindow(const bool &value) {
auto oldValue = p_Show_MultiWindow;
p_Show_MultiWindow = value;
markPropertySet(13);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Show_MultiWindow"), value);
});
}
if (p_Show_MultiWindow != oldValue) {
Q_EMIT Show_MultiWindowChanged();
}
}
bool Show_Recent() const {
return p_Show_Recent;
}
void setShow_Recent(const bool &value) {
auto oldValue = p_Show_Recent;
p_Show_Recent = value;
markPropertySet(14);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Show_Recent"), value);
});
}
if (p_Show_Recent != oldValue) {
Q_EMIT Show_RecentChanged();
}
}
double Show_Timeout() const {
return p_Show_Timeout;
}
void setShow_Timeout(const double &value) {
auto oldValue = p_Show_Timeout;
p_Show_Timeout = value;
markPropertySet(15);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Show_Timeout"), value);
});
}
if (p_Show_Timeout != oldValue) {
Q_EMIT Show_TimeoutChanged();
}
}
QList<QVariant> Win_Icon_Preferred_Apps() const {
return p_Win_Icon_Preferred_Apps;
}
void setWin_Icon_Preferred_Apps(const QList<QVariant> &value) {
auto oldValue = p_Win_Icon_Preferred_Apps;
p_Win_Icon_Preferred_Apps = value;
markPropertySet(16);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Win_Icon_Preferred_Apps"), value);
});
}
if (p_Win_Icon_Preferred_Apps != oldValue) {
Q_EMIT Win_Icon_Preferred_AppsChanged();
}
}
double Window_Size_Efficient() const {
return p_Window_Size_Efficient;
}
void setWindow_Size_Efficient(const double &value) {
auto oldValue = p_Window_Size_Efficient;
p_Window_Size_Efficient = value;
markPropertySet(17);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Window_Size_Efficient"), value);
});
}
if (p_Window_Size_Efficient != oldValue) {
Q_EMIT Window_Size_EfficientChanged();
}
}
double Window_Size_Fashion() const {
return p_Window_Size_Fashion;
}
void setWindow_Size_Fashion(const double &value) {
auto oldValue = p_Window_Size_Fashion;
p_Window_Size_Fashion = value;
markPropertySet(18);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("Window_Size_Fashion"), value);
});
}
if (p_Window_Size_Fashion != oldValue) {
Q_EMIT Window_Size_FashionChanged();
}
}
Q_SIGNALS:
void Delay_Plugins_TimeChanged();
void Display_ModeChanged();
void Dock_Quick_PluginsChanged();
void Dock_Quick_Tray_NameChanged();
void Dock_Show_Window_nameChanged();
void Docked_AppsChanged();
void Force_Quit_AppChanged();
void Hide_ModeChanged();
void Hide_TimeoutChanged();
void Icon_SizeChanged();
void Plugin_SettingsChanged();
void PositionChanged();
void Recent_AppChanged();
void Show_MultiWindowChanged();
void Show_RecentChanged();
void Show_TimeoutChanged();
void Win_Icon_Preferred_AppsChanged();
void Window_Size_EfficientChanged();
void Window_Size_FashionChanged();
private:
void initialize(DTK_CORE_NAMESPACE::DConfig *config) {
Q_ASSERT(!m_config.loadRelaxed());
m_config.storeRelaxed(config);
if (testPropertySet(0)) {
config->setValue(QStringLiteral("Delay_Plugins_Time"), QVariant::fromValue(p_Delay_Plugins_Time));
} else {
updateValue(QStringLiteral("Delay_Plugins_Time"), QVariant::fromValue(p_Delay_Plugins_Time));
}
if (testPropertySet(1)) {
config->setValue(QStringLiteral("Display_Mode"), QVariant::fromValue(p_Display_Mode));
} else {
updateValue(QStringLiteral("Display_Mode"), QVariant::fromValue(p_Display_Mode));
}
if (testPropertySet(2)) {
config->setValue(QStringLiteral("Dock_Quick_Plugins"), QVariant::fromValue(p_Dock_Quick_Plugins));
} else {
updateValue(QStringLiteral("Dock_Quick_Plugins"), QVariant::fromValue(p_Dock_Quick_Plugins));
}
if (testPropertySet(3)) {
config->setValue(QStringLiteral("Dock_Quick_Tray_Name"), QVariant::fromValue(p_Dock_Quick_Tray_Name));
} else {
updateValue(QStringLiteral("Dock_Quick_Tray_Name"), QVariant::fromValue(p_Dock_Quick_Tray_Name));
}
if (testPropertySet(4)) {
config->setValue(QStringLiteral("Dock_Show_Window_name"), QVariant::fromValue(p_Dock_Show_Window_name));
} else {
updateValue(QStringLiteral("Dock_Show_Window_name"), QVariant::fromValue(p_Dock_Show_Window_name));
}
if (testPropertySet(5)) {
config->setValue(QStringLiteral("Docked_Apps"), QVariant::fromValue(p_Docked_Apps));
} else {
updateValue(QStringLiteral("Docked_Apps"), QVariant::fromValue(p_Docked_Apps));
}
if (testPropertySet(6)) {
config->setValue(QStringLiteral("Force_Quit_App"), QVariant::fromValue(p_Force_Quit_App));
} else {
updateValue(QStringLiteral("Force_Quit_App"), QVariant::fromValue(p_Force_Quit_App));
}
if (testPropertySet(7)) {
config->setValue(QStringLiteral("Hide_Mode"), QVariant::fromValue(p_Hide_Mode));
} else {
updateValue(QStringLiteral("Hide_Mode"), QVariant::fromValue(p_Hide_Mode));
}
if (testPropertySet(8)) {
config->setValue(QStringLiteral("Hide_Timeout"), QVariant::fromValue(p_Hide_Timeout));
} else {
updateValue(QStringLiteral("Hide_Timeout"), QVariant::fromValue(p_Hide_Timeout));
}
if (testPropertySet(9)) {
config->setValue(QStringLiteral("Icon_Size"), QVariant::fromValue(p_Icon_Size));
} else {
updateValue(QStringLiteral("Icon_Size"), QVariant::fromValue(p_Icon_Size));
}
if (testPropertySet(10)) {
config->setValue(QStringLiteral("Plugin_Settings"), QVariant::fromValue(p_Plugin_Settings));
} else {
updateValue(QStringLiteral("Plugin_Settings"), QVariant::fromValue(p_Plugin_Settings));
}
if (testPropertySet(11)) {
config->setValue(QStringLiteral("Position"), QVariant::fromValue(p_Position));
} else {
updateValue(QStringLiteral("Position"), QVariant::fromValue(p_Position));
}
if (testPropertySet(12)) {
config->setValue(QStringLiteral("Recent_App"), QVariant::fromValue(p_Recent_App));
} else {
updateValue(QStringLiteral("Recent_App"), QVariant::fromValue(p_Recent_App));
}
if (testPropertySet(13)) {
config->setValue(QStringLiteral("Show_MultiWindow"), QVariant::fromValue(p_Show_MultiWindow));
} else {
updateValue(QStringLiteral("Show_MultiWindow"), QVariant::fromValue(p_Show_MultiWindow));
}
if (testPropertySet(14)) {
config->setValue(QStringLiteral("Show_Recent"), QVariant::fromValue(p_Show_Recent));
} else {
updateValue(QStringLiteral("Show_Recent"), QVariant::fromValue(p_Show_Recent));
}
if (testPropertySet(15)) {
config->setValue(QStringLiteral("Show_Timeout"), QVariant::fromValue(p_Show_Timeout));
} else {
updateValue(QStringLiteral("Show_Timeout"), QVariant::fromValue(p_Show_Timeout));
}
if (testPropertySet(16)) {
config->setValue(QStringLiteral("Win_Icon_Preferred_Apps"), QVariant::fromValue(p_Win_Icon_Preferred_Apps));
} else {
updateValue(QStringLiteral("Win_Icon_Preferred_Apps"), QVariant::fromValue(p_Win_Icon_Preferred_Apps));
}
if (testPropertySet(17)) {
config->setValue(QStringLiteral("Window_Size_Efficient"), QVariant::fromValue(p_Window_Size_Efficient));
} else {
updateValue(QStringLiteral("Window_Size_Efficient"), QVariant::fromValue(p_Window_Size_Efficient));
}
if (testPropertySet(18)) {
config->setValue(QStringLiteral("Window_Size_Fashion"), QVariant::fromValue(p_Window_Size_Fashion));
} else {
updateValue(QStringLiteral("Window_Size_Fashion"), QVariant::fromValue(p_Window_Size_Fashion));
}
connect(config, &DTK_CORE_NAMESPACE::DConfig::valueChanged, this, [this](const QString &key) {
updateValue(key);
}, Qt::DirectConnection);
}
void updateValue(const QString &key, const QVariant &fallback = QVariant()) {
Q_ASSERT(QThread::currentThread() == m_config.loadRelaxed()->thread());
const QVariant &value = m_config.loadRelaxed()->value(key, fallback);
if (key == QStringLiteral("Delay_Plugins_Time")) {
auto newValue = qvariant_cast<double>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Delay_Plugins_Time != newValue) {
p_Delay_Plugins_Time = newValue;
Q_EMIT Delay_Plugins_TimeChanged();
}
});
return;
}
if (key == QStringLiteral("Display_Mode")) {
auto newValue = qvariant_cast<QString>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Display_Mode != newValue) {
p_Display_Mode = newValue;
Q_EMIT Display_ModeChanged();
}
});
return;
}
if (key == QStringLiteral("Dock_Quick_Plugins")) {
auto newValue = qvariant_cast<QList<QVariant>>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Dock_Quick_Plugins != newValue) {
p_Dock_Quick_Plugins = newValue;
Q_EMIT Dock_Quick_PluginsChanged();
}
});
return;
}
if (key == QStringLiteral("Dock_Quick_Tray_Name")) {
auto newValue = qvariant_cast<QList<QVariant>>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Dock_Quick_Tray_Name != newValue) {
p_Dock_Quick_Tray_Name = newValue;
Q_EMIT Dock_Quick_Tray_NameChanged();
}
});
return;
}
if (key == QStringLiteral("Dock_Show_Window_name")) {
auto newValue = qvariant_cast<double>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Dock_Show_Window_name != newValue) {
p_Dock_Show_Window_name = newValue;
Q_EMIT Dock_Show_Window_nameChanged();
}
});
return;
}
if (key == QStringLiteral("Docked_Apps")) {
auto newValue = qvariant_cast<QList<QVariant>>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Docked_Apps != newValue) {
p_Docked_Apps = newValue;
Q_EMIT Docked_AppsChanged();
}
});
return;
}
if (key == QStringLiteral("Force_Quit_App")) {
auto newValue = qvariant_cast<QString>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Force_Quit_App != newValue) {
p_Force_Quit_App = newValue;
Q_EMIT Force_Quit_AppChanged();
}
});
return;
}
if (key == QStringLiteral("Hide_Mode")) {
auto newValue = qvariant_cast<QString>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Hide_Mode != newValue) {
p_Hide_Mode = newValue;
Q_EMIT Hide_ModeChanged();
}
});
return;
}
if (key == QStringLiteral("Hide_Timeout")) {
auto newValue = qvariant_cast<double>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Hide_Timeout != newValue) {
p_Hide_Timeout = newValue;
Q_EMIT Hide_TimeoutChanged();
}
});
return;
}
if (key == QStringLiteral("Icon_Size")) {
auto newValue = qvariant_cast<double>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Icon_Size != newValue) {
p_Icon_Size = newValue;
Q_EMIT Icon_SizeChanged();
}
});
return;
}
if (key == QStringLiteral("Plugin_Settings")) {
auto newValue = qvariant_cast<QString>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Plugin_Settings != newValue) {
p_Plugin_Settings = newValue;
Q_EMIT Plugin_SettingsChanged();
}
});
return;
}
if (key == QStringLiteral("Position")) {
auto newValue = qvariant_cast<QString>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Position != newValue) {
p_Position = newValue;
Q_EMIT PositionChanged();
}
});
return;
}
if (key == QStringLiteral("Recent_App")) {
auto newValue = qvariant_cast<QList<QVariant>>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Recent_App != newValue) {
p_Recent_App = newValue;
Q_EMIT Recent_AppChanged();
}
});
return;
}
if (key == QStringLiteral("Show_MultiWindow")) {
auto newValue = qvariant_cast<bool>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Show_MultiWindow != newValue) {
p_Show_MultiWindow = newValue;
Q_EMIT Show_MultiWindowChanged();
}
});
return;
}
if (key == QStringLiteral("Show_Recent")) {
auto newValue = qvariant_cast<bool>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Show_Recent != newValue) {
p_Show_Recent = newValue;
Q_EMIT Show_RecentChanged();
}
});
return;
}
if (key == QStringLiteral("Show_Timeout")) {
auto newValue = qvariant_cast<double>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Show_Timeout != newValue) {
p_Show_Timeout = newValue;
Q_EMIT Show_TimeoutChanged();
}
});
return;
}
if (key == QStringLiteral("Win_Icon_Preferred_Apps")) {
auto newValue = qvariant_cast<QList<QVariant>>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Win_Icon_Preferred_Apps != newValue) {
p_Win_Icon_Preferred_Apps = newValue;
Q_EMIT Win_Icon_Preferred_AppsChanged();
}
});
return;
}
if (key == QStringLiteral("Window_Size_Efficient")) {
auto newValue = qvariant_cast<double>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Window_Size_Efficient != newValue) {
p_Window_Size_Efficient = newValue;
Q_EMIT Window_Size_EfficientChanged();
}
});
return;
}
if (key == QStringLiteral("Window_Size_Fashion")) {
auto newValue = qvariant_cast<double>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_Window_Size_Fashion != newValue) {
p_Window_Size_Fashion = newValue;
Q_EMIT Window_Size_FashionChanged();
}
});
return;
}
}
inline void markPropertySet(const int index) {
if (index < 32) {
m_propertySetStatus0.fetchAndOrOrdered(1 << (index - 0));
return;
}
Q_UNREACHABLE();
}
inline bool testPropertySet(const int index) const {
if (index < 32) {
return (m_propertySetStatus0.loadRelaxed() & (1 << (index - 0)));
}
Q_UNREACHABLE();
}
QAtomicPointer<DTK_CORE_NAMESPACE::DConfig> m_config = nullptr;
double p_Delay_Plugins_Time { 0 };
QString p_Display_Mode { QStringLiteral("fashion") };
QList<QVariant> p_Dock_Quick_Plugins { QList<QVariant>{QVariant(QStringLiteral("power")), QVariant(QStringLiteral("network")), QVariant(QStringLiteral("shutdown")), QVariant(QStringLiteral("show-desktop")), QVariant(QStringLiteral("multitasking")), QVariant(QStringLiteral("notification")), QVariant(QStringLiteral("uosai"))} };
QList<QVariant> p_Dock_Quick_Tray_Name { QList<QVariant>{QVariant(QStringLiteral("fcitx")), QVariant(QStringLiteral("indicator:keybord_layout"))} };
double p_Dock_Show_Window_name { 0 };
QList<QVariant> p_Docked_Apps { QList<QVariant>{QVariant(QStringLiteral("/usr/share/applications/dde-file-manager")), QVariant(QStringLiteral("/usr/share/applications/uos-browser")), QVariant(QStringLiteral("/usr/share/applications/org.deepin.browser")), QVariant(QStringLiteral("/usr/share/applications/deepin-appstore")), QVariant(QStringLiteral("/usr/share/applications/deepin-app-store")), QVariant(QStringLiteral("/usr/share/applications/com.deepin.store.intranet")), QVariant(QStringLiteral("/usr/share/applications/deepin-album")), QVariant(QStringLiteral("/usr/share/applications/deepin-music")), QVariant(QStringLiteral("/usr/share/applications/deepin-contacts")), QVariant(QStringLiteral("/usr/share/applications/dde-calendar")), QVariant(QStringLiteral("/usr/share/applications/dde-control-center"))} };
QString p_Force_Quit_App { QStringLiteral("enabled") };
QString p_Hide_Mode { QStringLiteral("keep-showing") };
double p_Hide_Timeout { 0 };
double p_Icon_Size { 36 };
QString p_Plugin_Settings { QStringLiteral("{}") };
QString p_Position { QStringLiteral("bottom") };
QList<QVariant> p_Recent_App { QList<QVariant>{} };
bool p_Show_MultiWindow { false };
bool p_Show_Recent { false };
double p_Show_Timeout { 100 };
QList<QVariant> p_Win_Icon_Preferred_Apps { QList<QVariant>{QVariant(QStringLiteral("apps.com.qq.im")), QVariant(QStringLiteral("deepin.com.qq.im")), QVariant(QStringLiteral("apps.com.qq.im.light")), QVariant(QStringLiteral("apps.com.qq.b.eim")), QVariant(QStringLiteral("apps.com.qq.rtxclient"))} };
double p_Window_Size_Efficient { 40 };
double p_Window_Size_Fashion { 48 };
QAtomicInteger<quint32> m_propertySetStatus0 = 0;
};
#endif // COM_DEEPIN_DDE_DOCK_H

View File

@ -0,0 +1,282 @@
/**
* This file is generated by dconfig2cpp.
* Command line arguments: ./dconfig2cpp -p ./dde-dock/toolGenerate/dconfig2cpp ./dde-dock/configs/org.deepin.dde.dock.power.json
* Generation time: 2025-01-14T10:55:02
* JSON file version: 1.0
*
* WARNING: DO NOT MODIFY THIS FILE MANUALLY.
* If you need to change the content, please modify the dconfig2cpp tool.
*/
#ifndef ORG_DEEPIN_DDE_DOCK_POWER_H
#define ORG_DEEPIN_DDE_DOCK_POWER_H
#include <QThread>
#include <QVariant>
#include <QDebug>
#include <QAtomicPointer>
#include <QAtomicInteger>
#include <DConfig>
class org_deepin_dde_dock_power : public QObject {
Q_OBJECT
Q_PROPERTY(bool control READ control WRITE setControl NOTIFY controlChanged)
Q_PROPERTY(bool enable READ enable WRITE setEnable NOTIFY enableChanged)
Q_PROPERTY(bool menu-enable READ menu-enable WRITE setMenu-enable NOTIFY menu-enableChanged)
Q_PROPERTY(bool showtimetofull READ showtimetofull WRITE setShowtimetofull NOTIFY showtimetofullChanged)
public:
explicit org_deepin_dde_dock_power(QThread *thread, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr)
: QObject(parent) {
if (!thread->isRunning()) {
qWarning() << QStringLiteral("Warning: The provided thread is not running.");
}
Q_ASSERT(QThread::currentThread() != thread);
auto worker = new QObject();
worker->moveToThread(thread);
QMetaObject::invokeMethod(worker, [=]() {
auto config = DTK_CORE_NAMESPACE::DConfig::create(appId, name, subpath, nullptr);
if (!config) {
qWarning() << QStringLiteral("Failed to create DConfig instance.");
worker->deleteLater();
return;
}
config->moveToThread(QThread::currentThread());
initialize(config);
worker->deleteLater();
});
}
explicit org_deepin_dde_dock_power(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr)
: QObject(parent) {
if (!thread->isRunning()) {
qWarning() << QStringLiteral("Warning: The provided thread is not running.");
}
Q_ASSERT(QThread::currentThread() != thread);
auto worker = new QObject();
worker->moveToThread(thread);
QMetaObject::invokeMethod(worker, [=]() {
auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, appId, name, subpath, nullptr);
if (!config) {
qWarning() << QStringLiteral("Failed to create DConfig instance.");
worker->deleteLater();
return;
}
config->moveToThread(QThread::currentThread());
initialize(config);
worker->deleteLater();
});
}
explicit org_deepin_dde_dock_power(QThread *thread, const QString &name, const QString &subpath, QObject *parent = nullptr)
: QObject(parent) {
if (!thread->isRunning()) {
qWarning() << QStringLiteral("Warning: The provided thread is not running.");
}
Q_ASSERT(QThread::currentThread() != thread);
auto worker = new QObject();
worker->moveToThread(thread);
QMetaObject::invokeMethod(worker, [=]() {
auto config = DTK_CORE_NAMESPACE::DConfig::create(name, subpath, nullptr);
if (!config) {
qWarning() << QStringLiteral("Failed to create DConfig instance.");
worker->deleteLater();
return;
}
config->moveToThread(QThread::currentThread());
initialize(config);
worker->deleteLater();
});
}
explicit org_deepin_dde_dock_power(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &name, const QString &subpath, QObject *parent = nullptr)
: QObject(parent) {
if (!thread->isRunning()) {
qWarning() << QStringLiteral("Warning: The provided thread is not running.");
}
Q_ASSERT(QThread::currentThread() != thread);
auto worker = new QObject();
worker->moveToThread(thread);
QMetaObject::invokeMethod(worker, [=]() {
auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, name, subpath, nullptr);
if (!config) {
qWarning() << QStringLiteral("Failed to create DConfig instance.");
worker->deleteLater();
return;
}
config->moveToThread(QThread::currentThread());
initialize(config);
worker->deleteLater();
});
}
~org_deepin_dde_dock_power() {
if (m_config.loadRelaxed()) {
m_config.loadRelaxed()->deleteLater();
}
}
bool control() const {
return p_control;
}
void setControl(const bool &value) {
auto oldValue = p_control;
p_control = value;
markPropertySet(0);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("control"), value);
});
}
if (p_control != oldValue) {
Q_EMIT controlChanged();
}
}
bool enable() const {
return p_enable;
}
void setEnable(const bool &value) {
auto oldValue = p_enable;
p_enable = value;
markPropertySet(1);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("enable"), value);
});
}
if (p_enable != oldValue) {
Q_EMIT enableChanged();
}
}
bool menu-enable() const {
return p_menu-enable;
}
void setMenu-enable(const bool &value) {
auto oldValue = p_menu-enable;
p_menu-enable = value;
markPropertySet(2);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("menu-enable"), value);
});
}
if (p_menu-enable != oldValue) {
Q_EMIT menu-enableChanged();
}
}
bool showtimetofull() const {
return p_showtimetofull;
}
void setShowtimetofull(const bool &value) {
auto oldValue = p_showtimetofull;
p_showtimetofull = value;
markPropertySet(3);
if (auto config = m_config.loadRelaxed()) {
QMetaObject::invokeMethod(config, [this, value]() {
m_config.loadRelaxed()->setValue(QStringLiteral("showtimetofull"), value);
});
}
if (p_showtimetofull != oldValue) {
Q_EMIT showtimetofullChanged();
}
}
Q_SIGNALS:
void controlChanged();
void enableChanged();
void menu-enableChanged();
void showtimetofullChanged();
private:
void initialize(DTK_CORE_NAMESPACE::DConfig *config) {
Q_ASSERT(!m_config.loadRelaxed());
m_config.storeRelaxed(config);
if (testPropertySet(0)) {
config->setValue(QStringLiteral("control"), QVariant::fromValue(p_control));
} else {
updateValue(QStringLiteral("control"), QVariant::fromValue(p_control));
}
if (testPropertySet(1)) {
config->setValue(QStringLiteral("enable"), QVariant::fromValue(p_enable));
} else {
updateValue(QStringLiteral("enable"), QVariant::fromValue(p_enable));
}
if (testPropertySet(2)) {
config->setValue(QStringLiteral("menu-enable"), QVariant::fromValue(p_menu-enable));
} else {
updateValue(QStringLiteral("menu-enable"), QVariant::fromValue(p_menu-enable));
}
if (testPropertySet(3)) {
config->setValue(QStringLiteral("showtimetofull"), QVariant::fromValue(p_showtimetofull));
} else {
updateValue(QStringLiteral("showtimetofull"), QVariant::fromValue(p_showtimetofull));
}
connect(config, &DTK_CORE_NAMESPACE::DConfig::valueChanged, this, [this](const QString &key) {
updateValue(key);
}, Qt::DirectConnection);
}
void updateValue(const QString &key, const QVariant &fallback = QVariant()) {
Q_ASSERT(QThread::currentThread() == m_config.loadRelaxed()->thread());
const QVariant &value = m_config.loadRelaxed()->value(key, fallback);
if (key == QStringLiteral("control")) {
auto newValue = qvariant_cast<bool>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_control != newValue) {
p_control = newValue;
Q_EMIT controlChanged();
}
});
return;
}
if (key == QStringLiteral("enable")) {
auto newValue = qvariant_cast<bool>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_enable != newValue) {
p_enable = newValue;
Q_EMIT enableChanged();
}
});
return;
}
if (key == QStringLiteral("menu-enable")) {
auto newValue = qvariant_cast<bool>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_menu-enable != newValue) {
p_menu-enable = newValue;
Q_EMIT menu-enableChanged();
}
});
return;
}
if (key == QStringLiteral("showtimetofull")) {
auto newValue = qvariant_cast<bool>(value);
QMetaObject::invokeMethod(this, [this, newValue]() {
if (p_showtimetofull != newValue) {
p_showtimetofull = newValue;
Q_EMIT showtimetofullChanged();
}
});
return;
}
}
inline void markPropertySet(const int index) {
if (index < 32) {
m_propertySetStatus0.fetchAndOrOrdered(1 << (index - 0));
return;
}
Q_UNREACHABLE();
}
inline bool testPropertySet(const int index) const {
if (index < 32) {
return (m_propertySetStatus0.loadRelaxed() & (1 << (index - 0)));
}
Q_UNREACHABLE();
}
QAtomicPointer<DTK_CORE_NAMESPACE::DConfig> m_config = nullptr;
bool p_control { false };
bool p_enable { true };
bool p_menu-enable { true };
bool p_showtimetofull { true };
QAtomicInteger<quint32> m_propertySetStatus0 = 0;
};
#endif // ORG_DEEPIN_DDE_DOCK_POWER_H

View File

@ -0,0 +1,19 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/gschema/com.deepin.dde.dock.module.gschema.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschemaAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschema.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschemaAdaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

View File

@ -0,0 +1,27 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/gschema/com.deepin.dde.dock.module.gschema.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschemaAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschema.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef COM_DEEPIN_DDE_DOCK_MODULE_GSCHEMAADAPTOR_H
#define COM_DEEPIN_DDE_DOCK_MODULE_GSCHEMAADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschema.h"
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
#endif

View File

@ -0,0 +1,365 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/com.deepin.wm.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.wm.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class WmAdaptor
*/
WmAdaptor::WmAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
WmAdaptor::~WmAdaptor()
{
// destructor
}
bool WmAdaptor::compositingAllowSwitch() const
{
// get the value of property compositingAllowSwitch
return qvariant_cast< bool >(parent()->property("compositingAllowSwitch"));
}
bool WmAdaptor::compositingEnabled() const
{
// get the value of property compositingEnabled
return qvariant_cast< bool >(parent()->property("compositingEnabled"));
}
void WmAdaptor::setCompositingEnabled(bool value)
{
// set the value of property compositingEnabled
parent()->setProperty("compositingEnabled", QVariant::fromValue(value));
}
bool WmAdaptor::compositingPossible() const
{
// get the value of property compositingPossible
return qvariant_cast< bool >(parent()->property("compositingPossible"));
}
int WmAdaptor::cursorSize() const
{
// get the value of property cursorSize
return qvariant_cast< int >(parent()->property("cursorSize"));
}
void WmAdaptor::setCursorSize(int value)
{
// set the value of property cursorSize
parent()->setProperty("cursorSize", QVariant::fromValue(value));
}
QString WmAdaptor::cursorTheme() const
{
// get the value of property cursorTheme
return qvariant_cast< QString >(parent()->property("cursorTheme"));
}
void WmAdaptor::setCursorTheme(const QString &value)
{
// set the value of property cursorTheme
parent()->setProperty("cursorTheme", QVariant::fromValue(value));
}
bool WmAdaptor::zoneEnabled() const
{
// get the value of property zoneEnabled
return qvariant_cast< bool >(parent()->property("zoneEnabled"));
}
void WmAdaptor::setZoneEnabled(bool value)
{
// set the value of property zoneEnabled
parent()->setProperty("zoneEnabled", QVariant::fromValue(value));
}
void WmAdaptor::BeginToMoveActiveWindow()
{
// handle method call com.deepin.wm.BeginToMoveActiveWindow
QMetaObject::invokeMethod(parent(), "BeginToMoveActiveWindow");
}
void WmAdaptor::CancelPreviewWindow()
{
// handle method call com.deepin.wm.CancelPreviewWindow
QMetaObject::invokeMethod(parent(), "CancelPreviewWindow");
}
void WmAdaptor::ChangeCurrentWorkspaceBackground(const QString &uri)
{
// handle method call com.deepin.wm.ChangeCurrentWorkspaceBackground
QMetaObject::invokeMethod(parent(), "ChangeCurrentWorkspaceBackground", Q_ARG(QString, uri));
}
void WmAdaptor::EnableZoneDetected(bool enabled)
{
// handle method call com.deepin.wm.EnableZoneDetected
QMetaObject::invokeMethod(parent(), "EnableZoneDetected", Q_ARG(bool, enabled));
}
QStringList WmAdaptor::GetAccel(const QString &id)
{
// handle method call com.deepin.wm.GetAccel
QStringList data;
QMetaObject::invokeMethod(parent(), "GetAccel", Q_RETURN_ARG(QStringList, data), Q_ARG(QString, id));
return data;
}
QString WmAdaptor::GetAllAccels()
{
// handle method call com.deepin.wm.GetAllAccels
QString data;
QMetaObject::invokeMethod(parent(), "GetAllAccels", Q_RETURN_ARG(QString, data));
return data;
}
int WmAdaptor::GetCurrentWorkspace()
{
// handle method call com.deepin.wm.GetCurrentWorkspace
int index;
QMetaObject::invokeMethod(parent(), "GetCurrentWorkspace", Q_RETURN_ARG(int, index));
return index;
}
QString WmAdaptor::GetCurrentWorkspaceBackground()
{
// handle method call com.deepin.wm.GetCurrentWorkspaceBackground
QString result;
QMetaObject::invokeMethod(parent(), "GetCurrentWorkspaceBackground", Q_RETURN_ARG(QString, result));
return result;
}
QString WmAdaptor::GetCurrentWorkspaceBackgroundForMonitor(const QString &strMonitorName)
{
// handle method call com.deepin.wm.GetCurrentWorkspaceBackgroundForMonitor
QString result;
QMetaObject::invokeMethod(parent(), "GetCurrentWorkspaceBackgroundForMonitor", Q_RETURN_ARG(QString, result), Q_ARG(QString, strMonitorName));
return result;
}
QStringList WmAdaptor::GetDefaultAccel(const QString &id)
{
// handle method call com.deepin.wm.GetDefaultAccel
QStringList data;
QMetaObject::invokeMethod(parent(), "GetDefaultAccel", Q_RETURN_ARG(QStringList, data), Q_ARG(QString, id));
return data;
}
bool WmAdaptor::GetIsShowDesktop()
{
// handle method call com.deepin.wm.GetIsShowDesktop
bool isShowDesktop;
QMetaObject::invokeMethod(parent(), "GetIsShowDesktop", Q_RETURN_ARG(bool, isShowDesktop));
return isShowDesktop;
}
bool WmAdaptor::GetMultiTaskingStatus()
{
// handle method call com.deepin.wm.GetMultiTaskingStatus
bool isActive;
QMetaObject::invokeMethod(parent(), "GetMultiTaskingStatus", Q_RETURN_ARG(bool, isActive));
return isActive;
}
QString WmAdaptor::GetWorkspaceBackground(int index)
{
// handle method call com.deepin.wm.GetWorkspaceBackground
QString result;
QMetaObject::invokeMethod(parent(), "GetWorkspaceBackground", Q_RETURN_ARG(QString, result), Q_ARG(int, index));
return result;
}
QString WmAdaptor::GetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName)
{
// handle method call com.deepin.wm.GetWorkspaceBackgroundForMonitor
QString result;
QMetaObject::invokeMethod(parent(), "GetWorkspaceBackgroundForMonitor", Q_RETURN_ARG(QString, result), Q_ARG(int, index), Q_ARG(QString, strMonitorName));
return result;
}
void WmAdaptor::MinimizeActiveWindow()
{
// handle method call com.deepin.wm.MinimizeActiveWindow
QMetaObject::invokeMethod(parent(), "MinimizeActiveWindow");
}
void WmAdaptor::NextWorkspace()
{
// handle method call com.deepin.wm.NextWorkspace
QMetaObject::invokeMethod(parent(), "NextWorkspace");
}
void WmAdaptor::PerformAction(int type)
{
// handle method call com.deepin.wm.PerformAction
QMetaObject::invokeMethod(parent(), "PerformAction", Q_ARG(int, type));
}
void WmAdaptor::PresentWindows(const QList<uint> &xids)
{
// handle method call com.deepin.wm.PresentWindows
QMetaObject::invokeMethod(parent(), "PresentWindows", Q_ARG(QList<uint>, xids));
}
void WmAdaptor::PreviewWindow(uint xid)
{
// handle method call com.deepin.wm.PreviewWindow
QMetaObject::invokeMethod(parent(), "PreviewWindow", Q_ARG(uint, xid));
}
void WmAdaptor::PreviousWorkspace()
{
// handle method call com.deepin.wm.PreviousWorkspace
QMetaObject::invokeMethod(parent(), "PreviousWorkspace");
}
void WmAdaptor::RemoveAccel(const QString &id)
{
// handle method call com.deepin.wm.RemoveAccel
QMetaObject::invokeMethod(parent(), "RemoveAccel", Q_ARG(QString, id));
}
bool WmAdaptor::SetAccel(const QString &data)
{
// handle method call com.deepin.wm.SetAccel
bool result;
QMetaObject::invokeMethod(parent(), "SetAccel", Q_RETURN_ARG(bool, result), Q_ARG(QString, data));
return result;
}
void WmAdaptor::SetCurrentWorkspace(int index)
{
// handle method call com.deepin.wm.SetCurrentWorkspace
QMetaObject::invokeMethod(parent(), "SetCurrentWorkspace", Q_ARG(int, index));
}
void WmAdaptor::SetCurrentWorkspaceBackground(const QString &uri)
{
// handle method call com.deepin.wm.SetCurrentWorkspaceBackground
QMetaObject::invokeMethod(parent(), "SetCurrentWorkspaceBackground", Q_ARG(QString, uri));
}
void WmAdaptor::SetCurrentWorkspaceBackgroundForMonitor(const QString &uri, const QString &strMonitorName)
{
// handle method call com.deepin.wm.SetCurrentWorkspaceBackgroundForMonitor
QMetaObject::invokeMethod(parent(), "SetCurrentWorkspaceBackgroundForMonitor", Q_ARG(QString, uri), Q_ARG(QString, strMonitorName));
}
void WmAdaptor::SetDecorationDeepinTheme(const QString &deepinThemeName)
{
// handle method call com.deepin.wm.SetDecorationDeepinTheme
QMetaObject::invokeMethod(parent(), "SetDecorationDeepinTheme", Q_ARG(QString, deepinThemeName));
}
void WmAdaptor::SetDecorationTheme(const QString &themeType, const QString &themeName)
{
// handle method call com.deepin.wm.SetDecorationTheme
QMetaObject::invokeMethod(parent(), "SetDecorationTheme", Q_ARG(QString, themeType), Q_ARG(QString, themeName));
}
void WmAdaptor::SetMultiTaskingStatus(bool isActive)
{
// handle method call com.deepin.wm.SetMultiTaskingStatus
QMetaObject::invokeMethod(parent(), "SetMultiTaskingStatus", Q_ARG(bool, isActive));
}
void WmAdaptor::SetShowDesktop(bool isShowDesktop)
{
// handle method call com.deepin.wm.SetShowDesktop
QMetaObject::invokeMethod(parent(), "SetShowDesktop", Q_ARG(bool, isShowDesktop));
}
void WmAdaptor::SetTransientBackground(const QString &in0)
{
// handle method call com.deepin.wm.SetTransientBackground
QMetaObject::invokeMethod(parent(), "SetTransientBackground", Q_ARG(QString, in0));
}
void WmAdaptor::SetTransientBackgroundForMonitor(const QString &uri, const QString &strMonitorName)
{
// handle method call com.deepin.wm.SetTransientBackgroundForMonitor
QMetaObject::invokeMethod(parent(), "SetTransientBackgroundForMonitor", Q_ARG(QString, uri), Q_ARG(QString, strMonitorName));
}
void WmAdaptor::SetWorkspaceBackground(int index, const QString &uri)
{
// handle method call com.deepin.wm.SetWorkspaceBackground
QMetaObject::invokeMethod(parent(), "SetWorkspaceBackground", Q_ARG(int, index), Q_ARG(QString, uri));
}
void WmAdaptor::SetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName, const QString &uri)
{
// handle method call com.deepin.wm.SetWorkspaceBackgroundForMonitor
QMetaObject::invokeMethod(parent(), "SetWorkspaceBackgroundForMonitor", Q_ARG(int, index), Q_ARG(QString, strMonitorName), Q_ARG(QString, uri));
}
void WmAdaptor::ShowAllWindow()
{
// handle method call com.deepin.wm.ShowAllWindow
QMetaObject::invokeMethod(parent(), "ShowAllWindow");
}
void WmAdaptor::ShowWindow()
{
// handle method call com.deepin.wm.ShowWindow
QMetaObject::invokeMethod(parent(), "ShowWindow");
}
void WmAdaptor::ShowWorkspace()
{
// handle method call com.deepin.wm.ShowWorkspace
QMetaObject::invokeMethod(parent(), "ShowWorkspace");
}
void WmAdaptor::SwitchApplication(bool backward)
{
// handle method call com.deepin.wm.SwitchApplication
QMetaObject::invokeMethod(parent(), "SwitchApplication", Q_ARG(bool, backward));
}
void WmAdaptor::SwitchToWorkspace(bool backward)
{
// handle method call com.deepin.wm.SwitchToWorkspace
QMetaObject::invokeMethod(parent(), "SwitchToWorkspace", Q_ARG(bool, backward));
}
void WmAdaptor::TileActiveWindow(uint side)
{
// handle method call com.deepin.wm.TileActiveWindow
QMetaObject::invokeMethod(parent(), "TileActiveWindow", Q_ARG(uint, side));
}
void WmAdaptor::ToggleActiveWindowMaximize()
{
// handle method call com.deepin.wm.ToggleActiveWindowMaximize
QMetaObject::invokeMethod(parent(), "ToggleActiveWindowMaximize");
}
int WmAdaptor::WorkspaceCount()
{
// handle method call com.deepin.wm.WorkspaceCount
int count;
QMetaObject::invokeMethod(parent(), "WorkspaceCount", Q_RETURN_ARG(int, count));
return count;
}

View File

@ -0,0 +1,289 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/com.deepin.wm.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.wm.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef COM_DEEPIN_WMADAPTOR_H
#define COM_DEEPIN_WMADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.wm.h"
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.deepin.wm
*/
class WmAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "com.deepin.wm")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"com.deepin.wm\">\n"
" <property access=\"readwrite\" type=\"b\" name=\"compositingEnabled\"/>\n"
" <property access=\"read\" type=\"b\" name=\"compositingPossible\"/>\n"
" <property access=\"read\" type=\"b\" name=\"compositingAllowSwitch\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"zoneEnabled\"/>\n"
" <property access=\"readwrite\" type=\"s\" name=\"cursorTheme\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"cursorSize\"/>\n"
" <method name=\"SwitchApplication\">\n"
" <arg direction=\"in\" type=\"b\" name=\"backward\"/>\n"
" </method>\n"
" <method name=\"TileActiveWindow\">\n"
" <arg direction=\"in\" type=\"u\" name=\"side\"/>\n"
" </method>\n"
" <method name=\"BeginToMoveActiveWindow\"/>\n"
" <method name=\"ToggleActiveWindowMaximize\"/>\n"
" <method name=\"MinimizeActiveWindow\"/>\n"
" <method name=\"ShowWorkspace\"/>\n"
" <method name=\"ShowWindow\"/>\n"
" <method name=\"ShowAllWindow\"/>\n"
" <method name=\"PerformAction\">\n"
" <arg direction=\"in\" type=\"i\" name=\"type\"/>\n"
" </method>\n"
" <method name=\"PreviewWindow\">\n"
" <arg direction=\"in\" type=\"u\" name=\"xid\"/>\n"
" </method>\n"
" <method name=\"CancelPreviewWindow\"/>\n"
" <method name=\"GetCurrentWorkspaceBackground\">\n"
" <arg direction=\"out\" type=\"s\" name=\"result\"/>\n"
" </method>\n"
" <method name=\"SetCurrentWorkspaceBackground\">\n"
" <arg direction=\"in\" type=\"s\" name=\"uri\"/>\n"
" </method>\n"
" <method name=\"GetWorkspaceBackground\">\n"
" <arg direction=\"in\" type=\"i\" name=\"index\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"result\"/>\n"
" </method>\n"
" <method name=\"SetWorkspaceBackground\">\n"
" <arg direction=\"in\" type=\"i\" name=\"index\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"uri\"/>\n"
" </method>\n"
" <method name=\"SetTransientBackground\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"GetCurrentWorkspaceBackgroundForMonitor\">\n"
" <arg direction=\"in\" type=\"s\" name=\"strMonitorName\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"result\"/>\n"
" </method>\n"
" <method name=\"SetCurrentWorkspaceBackgroundForMonitor\">\n"
" <arg direction=\"in\" type=\"s\" name=\"uri\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"strMonitorName\"/>\n"
" </method>\n"
" <method name=\"GetWorkspaceBackgroundForMonitor\">\n"
" <arg direction=\"in\" type=\"i\" name=\"index\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"strMonitorName\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"result\"/>\n"
" </method>\n"
" <method name=\"SetWorkspaceBackgroundForMonitor\">\n"
" <arg direction=\"in\" type=\"i\" name=\"index\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"strMonitorName\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"uri\"/>\n"
" </method>\n"
" <method name=\"SetTransientBackgroundForMonitor\">\n"
" <arg direction=\"in\" type=\"s\" name=\"uri\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"strMonitorName\"/>\n"
" </method>\n"
" <method name=\"GetCurrentWorkspace\">\n"
" <arg direction=\"out\" type=\"i\" name=\"index\"/>\n"
" </method>\n"
" <method name=\"WorkspaceCount\">\n"
" <arg direction=\"out\" type=\"i\" name=\"count\"/>\n"
" </method>\n"
" <method name=\"SetCurrentWorkspace\">\n"
" <arg direction=\"in\" type=\"i\" name=\"index\"/>\n"
" </method>\n"
" <method name=\"PreviousWorkspace\"/>\n"
" <method name=\"NextWorkspace\"/>\n"
" <method name=\"GetAllAccels\">\n"
" <arg direction=\"out\" type=\"s\" name=\"data\"/>\n"
" </method>\n"
" <method name=\"GetAccel\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" <arg direction=\"out\" type=\"as\" name=\"data\"/>\n"
" </method>\n"
" <method name=\"GetDefaultAccel\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" <arg direction=\"out\" type=\"as\" name=\"data\"/>\n"
" </method>\n"
" <method name=\"SetAccel\">\n"
" <arg direction=\"in\" type=\"s\" name=\"data\"/>\n"
" <arg direction=\"out\" type=\"b\" name=\"result\"/>\n"
" </method>\n"
" <method name=\"RemoveAccel\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" </method>\n"
" <method name=\"SetDecorationTheme\">\n"
" <arg direction=\"in\" type=\"s\" name=\"themeType\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"themeName\"/>\n"
" </method>\n"
" <method name=\"SetDecorationDeepinTheme\">\n"
" <arg direction=\"in\" type=\"s\" name=\"deepinThemeName\"/>\n"
" </method>\n"
" <signal name=\"WorkspaceBackgroundChanged\">\n"
" <arg type=\"i\" name=\"index\"/>\n"
" <arg type=\"s\" name=\"newUri\"/>\n"
" </signal>\n"
" <signal name=\"WorkspaceBackgroundChangedForMonitor\">\n"
" <arg type=\"i\" name=\"index\"/>\n"
" <arg type=\"s\" name=\"strMonitorName\"/>\n"
" <arg type=\"s\" name=\"uri\"/>\n"
" </signal>\n"
" <signal name=\"compositingEnabledChanged\">\n"
" <arg type=\"b\" name=\"enabled\"/>\n"
" </signal>\n"
" <signal name=\"wmCompositingEnabledChanged\">\n"
" <arg type=\"b\" name=\"enabled\"/>\n"
" </signal>\n"
" <signal name=\"workspaceCountChanged\">\n"
" <arg type=\"i\" name=\"count\"/>\n"
" </signal>\n"
" <signal name=\"BeginToMoveActiveWindowChanged\"/>\n"
" <signal name=\"SwitchApplicationChanged\">\n"
" <arg type=\"b\" name=\"backward\"/>\n"
" </signal>\n"
" <signal name=\"TileActiveWindowChanged\">\n"
" <arg type=\"i\" name=\"side\"/>\n"
" </signal>\n"
" <signal name=\"ToggleActiveWindowMaximizeChanged\"/>\n"
" <signal name=\"ShowAllWindowChanged\"/>\n"
" <signal name=\"ShowWindowChanged\"/>\n"
" <signal name=\"ShowWorkspaceChanged\"/>\n"
" <signal name=\"ResumeCompositorChanged\">\n"
" <arg type=\"i\" name=\"reason\"/>\n"
" </signal>\n"
" <signal name=\"SuspendCompositorChanged\">\n"
" <arg type=\"i\" name=\"reason\"/>\n"
" </signal>\n"
" <method name=\"ChangeCurrentWorkspaceBackground\">\n"
" <arg direction=\"in\" type=\"s\" name=\"uri\"/>\n"
" </method>\n"
" <method name=\"SwitchToWorkspace\">\n"
" <arg direction=\"in\" type=\"b\" name=\"backward\"/>\n"
" </method>\n"
" <method name=\"PresentWindows\">\n"
" <arg direction=\"in\" type=\"au\" name=\"xids\"/>\n"
" <annotation value=\"QList&lt;uint&gt;\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
" </method>\n"
" <method name=\"EnableZoneDetected\">\n"
" <arg direction=\"in\" type=\"b\" name=\"enabled\"/>\n"
" </method>\n"
" <signal name=\"WorkspaceSwitched\">\n"
" <arg type=\"i\" name=\"from\"/>\n"
" <arg type=\"i\" name=\"to\"/>\n"
" </signal>\n"
" <method name=\"GetMultiTaskingStatus\">\n"
" <arg direction=\"out\" type=\"b\" name=\"isActive\"/>\n"
" </method>\n"
" <method name=\"SetMultiTaskingStatus\">\n"
" <arg direction=\"in\" type=\"b\" name=\"isActive\"/>\n"
" </method>\n"
" <method name=\"GetIsShowDesktop\">\n"
" <arg direction=\"out\" type=\"b\" name=\"isShowDesktop\"/>\n"
" </method>\n"
" <method name=\"SetShowDesktop\">\n"
" <arg direction=\"in\" type=\"b\" name=\"isShowDesktop\"/>\n"
" </method>\n"
" </interface>\n"
"")
public:
WmAdaptor(QObject *parent);
virtual ~WmAdaptor();
public: // PROPERTIES
Q_PROPERTY(bool compositingAllowSwitch READ compositingAllowSwitch)
bool compositingAllowSwitch() const;
Q_PROPERTY(bool compositingEnabled READ compositingEnabled WRITE setCompositingEnabled)
bool compositingEnabled() const;
void setCompositingEnabled(bool value);
Q_PROPERTY(bool compositingPossible READ compositingPossible)
bool compositingPossible() const;
Q_PROPERTY(int cursorSize READ cursorSize WRITE setCursorSize)
int cursorSize() const;
void setCursorSize(int value);
Q_PROPERTY(QString cursorTheme READ cursorTheme WRITE setCursorTheme)
QString cursorTheme() const;
void setCursorTheme(const QString &value);
Q_PROPERTY(bool zoneEnabled READ zoneEnabled WRITE setZoneEnabled)
bool zoneEnabled() const;
void setZoneEnabled(bool value);
public Q_SLOTS: // METHODS
void BeginToMoveActiveWindow();
void CancelPreviewWindow();
void ChangeCurrentWorkspaceBackground(const QString &uri);
void EnableZoneDetected(bool enabled);
QStringList GetAccel(const QString &id);
QString GetAllAccels();
int GetCurrentWorkspace();
QString GetCurrentWorkspaceBackground();
QString GetCurrentWorkspaceBackgroundForMonitor(const QString &strMonitorName);
QStringList GetDefaultAccel(const QString &id);
bool GetIsShowDesktop();
bool GetMultiTaskingStatus();
QString GetWorkspaceBackground(int index);
QString GetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName);
void MinimizeActiveWindow();
void NextWorkspace();
void PerformAction(int type);
void PresentWindows(const QList<uint> &xids);
void PreviewWindow(uint xid);
void PreviousWorkspace();
void RemoveAccel(const QString &id);
bool SetAccel(const QString &data);
void SetCurrentWorkspace(int index);
void SetCurrentWorkspaceBackground(const QString &uri);
void SetCurrentWorkspaceBackgroundForMonitor(const QString &uri, const QString &strMonitorName);
void SetDecorationDeepinTheme(const QString &deepinThemeName);
void SetDecorationTheme(const QString &themeType, const QString &themeName);
void SetMultiTaskingStatus(bool isActive);
void SetShowDesktop(bool isShowDesktop);
void SetTransientBackground(const QString &in0);
void SetTransientBackgroundForMonitor(const QString &uri, const QString &strMonitorName);
void SetWorkspaceBackground(int index, const QString &uri);
void SetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName, const QString &uri);
void ShowAllWindow();
void ShowWindow();
void ShowWorkspace();
void SwitchApplication(bool backward);
void SwitchToWorkspace(bool backward);
void TileActiveWindow(uint side);
void ToggleActiveWindowMaximize();
int WorkspaceCount();
Q_SIGNALS: // SIGNALS
void BeginToMoveActiveWindowChanged();
void ResumeCompositorChanged(int reason);
void ShowAllWindowChanged();
void ShowWindowChanged();
void ShowWorkspaceChanged();
void SuspendCompositorChanged(int reason);
void SwitchApplicationChanged(bool backward);
void TileActiveWindowChanged(int side);
void ToggleActiveWindowMaximizeChanged();
void WorkspaceBackgroundChanged(int index, const QString &newUri);
void WorkspaceBackgroundChangedForMonitor(int index, const QString &strMonitorName, const QString &uri);
void WorkspaceSwitched(int from, int to);
void compositingEnabledChanged(bool enabled);
void wmCompositingEnabledChanged(bool enabled);
void workspaceCountChanged(int count);
};
#endif

View File

@ -0,0 +1,77 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/plugins/airplane-mode/dbusinterface/xml/org.deepin.dde.AirplaneMode1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class AirplaneMode1Adaptor
*/
AirplaneMode1Adaptor::AirplaneMode1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
AirplaneMode1Adaptor::~AirplaneMode1Adaptor()
{
// destructor
}
bool AirplaneMode1Adaptor::bluetoothEnabled() const
{
// get the value of property BluetoothEnabled
return qvariant_cast< bool >(parent()->property("BluetoothEnabled"));
}
bool AirplaneMode1Adaptor::enabled() const
{
// get the value of property Enabled
return qvariant_cast< bool >(parent()->property("Enabled"));
}
bool AirplaneMode1Adaptor::wifiEnabled() const
{
// get the value of property WifiEnabled
return qvariant_cast< bool >(parent()->property("WifiEnabled"));
}
void AirplaneMode1Adaptor::DumpState()
{
// handle method call org.deepin.dde.AirplaneMode1.DumpState
QMetaObject::invokeMethod(parent(), "DumpState");
}
void AirplaneMode1Adaptor::Enable(bool enabled)
{
// handle method call org.deepin.dde.AirplaneMode1.Enable
QMetaObject::invokeMethod(parent(), "Enable", Q_ARG(bool, enabled));
}
void AirplaneMode1Adaptor::EnableBluetooth(bool enabled)
{
// handle method call org.deepin.dde.AirplaneMode1.EnableBluetooth
QMetaObject::invokeMethod(parent(), "EnableBluetooth", Q_ARG(bool, enabled));
}
void AirplaneMode1Adaptor::EnableWifi(bool enabled)
{
// handle method call org.deepin.dde.AirplaneMode1.EnableWifi
QMetaObject::invokeMethod(parent(), "EnableWifi", Q_ARG(bool, enabled));
}

View File

@ -0,0 +1,73 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/plugins/airplane-mode/dbusinterface/xml/org.deepin.dde.AirplaneMode1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_AIRPLANEMODE1ADAPTOR_H
#define ORG_DEEPIN_DDE_AIRPLANEMODE1ADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1.h"
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 org.deepin.dde.AirplaneMode1
*/
class AirplaneMode1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.AirplaneMode1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.AirplaneMode1\">\n"
" <method name=\"DumpState\"/>\n"
" <method name=\"Enable\">\n"
" <arg direction=\"in\" type=\"b\" name=\"enabled\"/>\n"
" </method>\n"
" <method name=\"EnableBluetooth\">\n"
" <arg direction=\"in\" type=\"b\" name=\"enabled\"/>\n"
" </method>\n"
" <method name=\"EnableWifi\">\n"
" <arg direction=\"in\" type=\"b\" name=\"enabled\"/>\n"
" </method>\n"
" <property access=\"read\" type=\"b\" name=\"BluetoothEnabled\"/>\n"
" <property access=\"read\" type=\"b\" name=\"Enabled\"/>\n"
" <property access=\"read\" type=\"b\" name=\"WifiEnabled\"/>\n"
" </interface>\n"
"")
public:
AirplaneMode1Adaptor(QObject *parent);
virtual ~AirplaneMode1Adaptor();
public: // PROPERTIES
Q_PROPERTY(bool BluetoothEnabled READ bluetoothEnabled)
bool bluetoothEnabled() const;
Q_PROPERTY(bool Enabled READ enabled)
bool enabled() const;
Q_PROPERTY(bool WifiEnabled READ wifiEnabled)
bool wifiEnabled() const;
public Q_SLOTS: // METHODS
void DumpState();
void Enable(bool enabled);
void EnableBluetooth(bool enabled);
void EnableWifi(bool enabled);
Q_SIGNALS: // SIGNALS
};
#endif

View File

@ -0,0 +1,143 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Appearance1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class Appearance1Adaptor
*/
Appearance1Adaptor::Appearance1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
Appearance1Adaptor::~Appearance1Adaptor()
{
// destructor
}
QString Appearance1Adaptor::background() const
{
// get the value of property Background
return qvariant_cast< QString >(parent()->property("Background"));
}
QString Appearance1Adaptor::cursorTheme() const
{
// get the value of property CursorTheme
return qvariant_cast< QString >(parent()->property("CursorTheme"));
}
double Appearance1Adaptor::fontSize() const
{
// get the value of property FontSize
return qvariant_cast< double >(parent()->property("FontSize"));
}
void Appearance1Adaptor::setFontSize(double value)
{
// set the value of property FontSize
parent()->setProperty("FontSize", QVariant::fromValue(value));
}
QString Appearance1Adaptor::globalTheme() const
{
// get the value of property GlobalTheme
return qvariant_cast< QString >(parent()->property("GlobalTheme"));
}
QString Appearance1Adaptor::gtkTheme() const
{
// get the value of property GtkTheme
return qvariant_cast< QString >(parent()->property("GtkTheme"));
}
QString Appearance1Adaptor::iconTheme() const
{
// get the value of property IconTheme
return qvariant_cast< QString >(parent()->property("IconTheme"));
}
QString Appearance1Adaptor::monospaceFont() const
{
// get the value of property MonospaceFont
return qvariant_cast< QString >(parent()->property("MonospaceFont"));
}
double Appearance1Adaptor::opacity() const
{
// get the value of property Opacity
return qvariant_cast< double >(parent()->property("Opacity"));
}
void Appearance1Adaptor::setOpacity(double value)
{
// set the value of property Opacity
parent()->setProperty("Opacity", QVariant::fromValue(value));
}
QString Appearance1Adaptor::qtActiveColor() const
{
// get the value of property QtActiveColor
return qvariant_cast< QString >(parent()->property("QtActiveColor"));
}
void Appearance1Adaptor::setQtActiveColor(const QString &value)
{
// set the value of property QtActiveColor
parent()->setProperty("QtActiveColor", QVariant::fromValue(value));
}
QString Appearance1Adaptor::standardFont() const
{
// get the value of property StandardFont
return qvariant_cast< QString >(parent()->property("StandardFont"));
}
QString Appearance1Adaptor::wallpaperSlideShow() const
{
// get the value of property WallpaperSlideShow
return qvariant_cast< QString >(parent()->property("WallpaperSlideShow"));
}
void Appearance1Adaptor::setWallpaperSlideShow(const QString &value)
{
// set the value of property WallpaperSlideShow
parent()->setProperty("WallpaperSlideShow", QVariant::fromValue(value));
}
QString Appearance1Adaptor::wallpaperURls() const
{
// get the value of property WallpaperURls
return qvariant_cast< QString >(parent()->property("WallpaperURls"));
}
int Appearance1Adaptor::windowRadius() const
{
// get the value of property WindowRadius
return qvariant_cast< int >(parent()->property("WindowRadius"));
}
void Appearance1Adaptor::setWindowRadius(int value)
{
// set the value of property WindowRadius
parent()->setProperty("WindowRadius", QVariant::fromValue(value));
}

View File

@ -0,0 +1,113 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Appearance1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_APPEARANCE1ADAPTOR_H
#define ORG_DEEPIN_DDE_APPEARANCE1ADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1.h"
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 org.deepin.dde.Appearance1
*/
class Appearance1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Appearance1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.Appearance1\">\n"
" <property access=\"readwrite\" type=\"d\" name=\"FontSize\"/>\n"
" <property access=\"readwrite\" type=\"d\" name=\"Opacity\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"WindowRadius\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Background\"/>\n"
" <property access=\"read\" type=\"s\" name=\"GlobalTheme\"/>\n"
" <property access=\"read\" type=\"s\" name=\"GtkTheme\"/>\n"
" <property access=\"read\" type=\"s\" name=\"IconTheme\"/>\n"
" <property access=\"read\" type=\"s\" name=\"CursorTheme\"/>\n"
" <property access=\"read\" type=\"s\" name=\"MonospaceFont\"/>\n"
" <property access=\"readwrite\" type=\"s\" name=\"QtActiveColor\"/>\n"
" <property access=\"read\" type=\"s\" name=\"StandardFont\"/>\n"
" <property access=\"readwrite\" type=\"s\" name=\"WallpaperSlideShow\"/>\n"
" <property access=\"read\" type=\"s\" name=\"WallpaperURls\"/>\n"
" <signal name=\"Changed\">\n"
" <arg type=\"s\" name=\"ty\"/>\n"
" <arg type=\"s\" name=\"value\"/>\n"
" </signal>\n"
" <signal name=\"Refreshed\">\n"
" <arg type=\"s\" name=\"type\"/>\n"
" </signal>\n"
" </interface>\n"
"")
public:
Appearance1Adaptor(QObject *parent);
virtual ~Appearance1Adaptor();
public: // PROPERTIES
Q_PROPERTY(QString Background READ background)
QString background() const;
Q_PROPERTY(QString CursorTheme READ cursorTheme)
QString cursorTheme() const;
Q_PROPERTY(double FontSize READ fontSize WRITE setFontSize)
double fontSize() const;
void setFontSize(double value);
Q_PROPERTY(QString GlobalTheme READ globalTheme)
QString globalTheme() const;
Q_PROPERTY(QString GtkTheme READ gtkTheme)
QString gtkTheme() const;
Q_PROPERTY(QString IconTheme READ iconTheme)
QString iconTheme() const;
Q_PROPERTY(QString MonospaceFont READ monospaceFont)
QString monospaceFont() const;
Q_PROPERTY(double Opacity READ opacity WRITE setOpacity)
double opacity() const;
void setOpacity(double value);
Q_PROPERTY(QString QtActiveColor READ qtActiveColor WRITE setQtActiveColor)
QString qtActiveColor() const;
void setQtActiveColor(const QString &value);
Q_PROPERTY(QString StandardFont READ standardFont)
QString standardFont() const;
Q_PROPERTY(QString WallpaperSlideShow READ wallpaperSlideShow WRITE setWallpaperSlideShow)
QString wallpaperSlideShow() const;
void setWallpaperSlideShow(const QString &value);
Q_PROPERTY(QString WallpaperURls READ wallpaperURls)
QString wallpaperURls() const;
Q_PROPERTY(int WindowRadius READ windowRadius WRITE setWindowRadius)
int windowRadius() const;
void setWindowRadius(int value);
public Q_SLOTS: // METHODS
Q_SIGNALS: // SIGNALS
void Changed(const QString &ty, const QString &value);
void Refreshed(const QString &type);
};
#endif

View File

@ -0,0 +1,145 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Audio1.Sink.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Sink.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class SinkAdaptor
*/
SinkAdaptor::SinkAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
SinkAdaptor::~SinkAdaptor()
{
// destructor
}
AudioPort SinkAdaptor::activePort() const
{
// get the value of property ActivePort
return qvariant_cast< AudioPort >(parent()->property("ActivePort"));
}
double SinkAdaptor::balance() const
{
// get the value of property Balance
return qvariant_cast< double >(parent()->property("Balance"));
}
double SinkAdaptor::baseVolume() const
{
// get the value of property BaseVolume
return qvariant_cast< double >(parent()->property("BaseVolume"));
}
uint SinkAdaptor::card() const
{
// get the value of property Card
return qvariant_cast< uint >(parent()->property("Card"));
}
QString SinkAdaptor::description() const
{
// get the value of property Description
return qvariant_cast< QString >(parent()->property("Description"));
}
double SinkAdaptor::fade() const
{
// get the value of property Fade
return qvariant_cast< double >(parent()->property("Fade"));
}
bool SinkAdaptor::mute() const
{
// get the value of property Mute
return qvariant_cast< bool >(parent()->property("Mute"));
}
QString SinkAdaptor::name() const
{
// get the value of property Name
return qvariant_cast< QString >(parent()->property("Name"));
}
AudioPortList SinkAdaptor::ports() const
{
// get the value of property Ports
return qvariant_cast< AudioPortList >(parent()->property("Ports"));
}
bool SinkAdaptor::supportBalance() const
{
// get the value of property SupportBalance
return qvariant_cast< bool >(parent()->property("SupportBalance"));
}
bool SinkAdaptor::supportFade() const
{
// get the value of property SupportFade
return qvariant_cast< bool >(parent()->property("SupportFade"));
}
double SinkAdaptor::volume() const
{
// get the value of property Volume
return qvariant_cast< double >(parent()->property("Volume"));
}
QDBusObjectPath SinkAdaptor::GetMeter()
{
// handle method call org.deepin.dde.Audio1.Sink.GetMeter
QDBusObjectPath out0;
QMetaObject::invokeMethod(parent(), "GetMeter", Q_RETURN_ARG(QDBusObjectPath, out0));
return out0;
}
void SinkAdaptor::SetBalance(double in0, bool in1)
{
// handle method call org.deepin.dde.Audio1.Sink.SetBalance
QMetaObject::invokeMethod(parent(), "SetBalance", Q_ARG(double, in0), Q_ARG(bool, in1));
}
void SinkAdaptor::SetFade(double in0)
{
// handle method call org.deepin.dde.Audio1.Sink.SetFade
QMetaObject::invokeMethod(parent(), "SetFade", Q_ARG(double, in0));
}
void SinkAdaptor::SetMute(bool in0)
{
// handle method call org.deepin.dde.Audio1.Sink.SetMute
QMetaObject::invokeMethod(parent(), "SetMute", Q_ARG(bool, in0));
}
void SinkAdaptor::SetPort(const QString &in0)
{
// handle method call org.deepin.dde.Audio1.Sink.SetPort
QMetaObject::invokeMethod(parent(), "SetPort", Q_ARG(QString, in0));
}
void SinkAdaptor::SetVolume(double in0, bool in1)
{
// handle method call org.deepin.dde.Audio1.Sink.SetVolume
QMetaObject::invokeMethod(parent(), "SetVolume", Q_ARG(double, in0), Q_ARG(bool, in1));
}

View File

@ -0,0 +1,125 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Audio1.Sink.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Sink.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_AUDIO1_SINKADAPTOR_H
#define ORG_DEEPIN_DDE_AUDIO1_SINKADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Sink.h"
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 org.deepin.dde.Audio1.Sink
*/
class SinkAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Audio1.Sink")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.Audio1.Sink\">\n"
" <method name=\"GetMeter\">\n"
" <arg direction=\"out\" type=\"o\"/>\n"
" </method>\n"
" <method name=\"SetBalance\">\n"
" <arg direction=\"in\" type=\"d\"/>\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SetFade\">\n"
" <arg direction=\"in\" type=\"d\"/>\n"
" </method>\n"
" <method name=\"SetMute\">\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SetPort\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SetVolume\">\n"
" <arg direction=\"in\" type=\"d\"/>\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <property access=\"read\" type=\"s\" name=\"Name\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Description\"/>\n"
" <property access=\"read\" type=\"d\" name=\"BaseVolume\"/>\n"
" <property access=\"read\" type=\"b\" name=\"Mute\"/>\n"
" <property access=\"read\" type=\"d\" name=\"Volume\"/>\n"
" <property access=\"read\" type=\"d\" name=\"Balance\"/>\n"
" <property access=\"read\" type=\"b\" name=\"SupportBalance\"/>\n"
" <property access=\"read\" type=\"d\" name=\"Fade\"/>\n"
" <property access=\"read\" type=\"b\" name=\"SupportFade\"/>\n"
" <property access=\"read\" type=\"a(ssy)\" name=\"Ports\">\n"
" <annotation value=\"AudioPortList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"(ssy)\" name=\"ActivePort\">\n"
" <annotation value=\"AudioPort\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"u\" name=\"Card\"/>\n"
" </interface>\n"
"")
public:
SinkAdaptor(QObject *parent);
virtual ~SinkAdaptor();
public: // PROPERTIES
Q_PROPERTY(AudioPort ActivePort READ activePort)
AudioPort activePort() const;
Q_PROPERTY(double Balance READ balance)
double balance() const;
Q_PROPERTY(double BaseVolume READ baseVolume)
double baseVolume() const;
Q_PROPERTY(uint Card READ card)
uint card() const;
Q_PROPERTY(QString Description READ description)
QString description() const;
Q_PROPERTY(double Fade READ fade)
double fade() const;
Q_PROPERTY(bool Mute READ mute)
bool mute() const;
Q_PROPERTY(QString Name READ name)
QString name() const;
Q_PROPERTY(AudioPortList Ports READ ports)
AudioPortList ports() const;
Q_PROPERTY(bool SupportBalance READ supportBalance)
bool supportBalance() const;
Q_PROPERTY(bool SupportFade READ supportFade)
bool supportFade() const;
Q_PROPERTY(double Volume READ volume)
double volume() const;
public Q_SLOTS: // METHODS
QDBusObjectPath GetMeter();
void SetBalance(double in0, bool in1);
void SetFade(double in0);
void SetMute(bool in0);
void SetPort(const QString &in0);
void SetVolume(double in0, bool in1);
Q_SIGNALS: // SIGNALS
};
#endif

View File

@ -0,0 +1,163 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Audio1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class Audio1Adaptor
*/
Audio1Adaptor::Audio1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
Audio1Adaptor::~Audio1Adaptor()
{
// destructor
}
QString Audio1Adaptor::bluetoothAudioMode() const
{
// get the value of property BluetoothAudioMode
return qvariant_cast< QString >(parent()->property("BluetoothAudioMode"));
}
QStringList Audio1Adaptor::bluetoothAudioModeOpts() const
{
// get the value of property BluetoothAudioModeOpts
return qvariant_cast< QStringList >(parent()->property("BluetoothAudioModeOpts"));
}
QString Audio1Adaptor::cards() const
{
// get the value of property Cards
return qvariant_cast< QString >(parent()->property("Cards"));
}
QString Audio1Adaptor::cardsWithoutUnavailable() const
{
// get the value of property CardsWithoutUnavailable
return qvariant_cast< QString >(parent()->property("CardsWithoutUnavailable"));
}
QDBusObjectPath Audio1Adaptor::defaultSink() const
{
// get the value of property DefaultSink
return qvariant_cast< QDBusObjectPath >(parent()->property("DefaultSink"));
}
QDBusObjectPath Audio1Adaptor::defaultSource() const
{
// get the value of property DefaultSource
return qvariant_cast< QDBusObjectPath >(parent()->property("DefaultSource"));
}
bool Audio1Adaptor::increaseVolume() const
{
// get the value of property IncreaseVolume
return qvariant_cast< bool >(parent()->property("IncreaseVolume"));
}
void Audio1Adaptor::setIncreaseVolume(bool value)
{
// set the value of property IncreaseVolume
parent()->setProperty("IncreaseVolume", QVariant::fromValue(value));
}
double Audio1Adaptor::maxUIVolume() const
{
// get the value of property MaxUIVolume
return qvariant_cast< double >(parent()->property("MaxUIVolume"));
}
bool Audio1Adaptor::reduceNoise() const
{
// get the value of property ReduceNoise
return qvariant_cast< bool >(parent()->property("ReduceNoise"));
}
void Audio1Adaptor::setReduceNoise(bool value)
{
// set the value of property ReduceNoise
parent()->setProperty("ReduceNoise", QVariant::fromValue(value));
}
QList<QDBusObjectPath> Audio1Adaptor::sinkInputs() const
{
// get the value of property SinkInputs
return qvariant_cast< QList<QDBusObjectPath> >(parent()->property("SinkInputs"));
}
QList<QDBusObjectPath> Audio1Adaptor::sinks() const
{
// get the value of property Sinks
return qvariant_cast< QList<QDBusObjectPath> >(parent()->property("Sinks"));
}
QList<QDBusObjectPath> Audio1Adaptor::sources() const
{
// get the value of property Sources
return qvariant_cast< QList<QDBusObjectPath> >(parent()->property("Sources"));
}
bool Audio1Adaptor::IsPortEnabled(uint in0, const QString &in1)
{
// handle method call org.deepin.dde.Audio1.IsPortEnabled
bool out0;
QMetaObject::invokeMethod(parent(), "IsPortEnabled", Q_RETURN_ARG(bool, out0), Q_ARG(uint, in0), Q_ARG(QString, in1));
return out0;
}
void Audio1Adaptor::Reset()
{
// handle method call org.deepin.dde.Audio1.Reset
QMetaObject::invokeMethod(parent(), "Reset");
}
void Audio1Adaptor::SetBluetoothAudioMode(const QString &in0)
{
// handle method call org.deepin.dde.Audio1.SetBluetoothAudioMode
QMetaObject::invokeMethod(parent(), "SetBluetoothAudioMode", Q_ARG(QString, in0));
}
void Audio1Adaptor::SetDefaultSink(const QString &in0)
{
// handle method call org.deepin.dde.Audio1.SetDefaultSink
QMetaObject::invokeMethod(parent(), "SetDefaultSink", Q_ARG(QString, in0));
}
void Audio1Adaptor::SetDefaultSource(const QString &in0)
{
// handle method call org.deepin.dde.Audio1.SetDefaultSource
QMetaObject::invokeMethod(parent(), "SetDefaultSource", Q_ARG(QString, in0));
}
void Audio1Adaptor::SetPort(uint in0, const QString &in1, int in2)
{
// handle method call org.deepin.dde.Audio1.SetPort
QMetaObject::invokeMethod(parent(), "SetPort", Q_ARG(uint, in0), Q_ARG(QString, in1), Q_ARG(int, in2));
}
void Audio1Adaptor::SetPortEnabled(uint in0, const QString &in1, bool in2)
{
// handle method call org.deepin.dde.Audio1.SetPortEnabled
QMetaObject::invokeMethod(parent(), "SetPortEnabled", Q_ARG(uint, in0), Q_ARG(QString, in1), Q_ARG(bool, in2));
}

View File

@ -0,0 +1,137 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Audio1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_AUDIO1ADAPTOR_H
#define ORG_DEEPIN_DDE_AUDIO1ADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.h"
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 org.deepin.dde.Audio1
*/
class Audio1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Audio1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.Audio1\">\n"
" <method name=\"Reset\"/>\n"
" <method name=\"SetDefaultSink\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SetDefaultSource\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SetBluetoothAudioMode\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SetPort\">\n"
" <arg direction=\"in\" type=\"u\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" </method>\n"
" <method name=\"SetPortEnabled\">\n"
" <arg direction=\"in\" type=\"u\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsPortEnabled\">\n"
" <arg direction=\"in\" type=\"u\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <signal name=\"PortEnabledChanged\">\n"
" <arg type=\"u\"/>\n"
" <arg type=\"s\"/>\n"
" <arg type=\"b\"/>\n"
" </signal>\n"
" <property access=\"read\" type=\"ao\" name=\"SinkInputs\"/>\n"
" <property access=\"read\" type=\"ao\" name=\"Sinks\"/>\n"
" <property access=\"read\" type=\"ao\" name=\"Sources\"/>\n"
" <property access=\"read\" type=\"as\" name=\"BluetoothAudioModeOpts\">\n"
" <annotation value=\"QStringList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"s\" name=\"BluetoothAudioMode\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Cards\"/>\n"
" <property access=\"read\" type=\"s\" name=\"CardsWithoutUnavailable\"/>\n"
" <property access=\"read\" type=\"o\" name=\"DefaultSink\"/>\n"
" <property access=\"read\" type=\"o\" name=\"DefaultSource\"/>\n"
" <property access=\"read\" type=\"d\" name=\"MaxUIVolume\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"IncreaseVolume\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"ReduceNoise\"/>\n"
" </interface>\n"
"")
public:
Audio1Adaptor(QObject *parent);
virtual ~Audio1Adaptor();
public: // PROPERTIES
Q_PROPERTY(QString BluetoothAudioMode READ bluetoothAudioMode)
QString bluetoothAudioMode() const;
Q_PROPERTY(QStringList BluetoothAudioModeOpts READ bluetoothAudioModeOpts)
QStringList bluetoothAudioModeOpts() const;
Q_PROPERTY(QString Cards READ cards)
QString cards() const;
Q_PROPERTY(QString CardsWithoutUnavailable READ cardsWithoutUnavailable)
QString cardsWithoutUnavailable() const;
Q_PROPERTY(QDBusObjectPath DefaultSink READ defaultSink)
QDBusObjectPath defaultSink() const;
Q_PROPERTY(QDBusObjectPath DefaultSource READ defaultSource)
QDBusObjectPath defaultSource() const;
Q_PROPERTY(bool IncreaseVolume READ increaseVolume WRITE setIncreaseVolume)
bool increaseVolume() const;
void setIncreaseVolume(bool value);
Q_PROPERTY(double MaxUIVolume READ maxUIVolume)
double maxUIVolume() const;
Q_PROPERTY(bool ReduceNoise READ reduceNoise WRITE setReduceNoise)
bool reduceNoise() const;
void setReduceNoise(bool value);
Q_PROPERTY(QList<QDBusObjectPath> SinkInputs READ sinkInputs)
QList<QDBusObjectPath> sinkInputs() const;
Q_PROPERTY(QList<QDBusObjectPath> Sinks READ sinks)
QList<QDBusObjectPath> sinks() const;
Q_PROPERTY(QList<QDBusObjectPath> Sources READ sources)
QList<QDBusObjectPath> sources() const;
public Q_SLOTS: // METHODS
bool IsPortEnabled(uint in0, const QString &in1);
void Reset();
void SetBluetoothAudioMode(const QString &in0);
void SetDefaultSink(const QString &in0);
void SetDefaultSource(const QString &in0);
void SetPort(uint in0, const QString &in1, int in2);
void SetPortEnabled(uint in0, const QString &in1, bool in2);
Q_SIGNALS: // SIGNALS
void PortEnabledChanged(uint in0, const QString &in1, bool in2);
};
#endif

View File

@ -0,0 +1,193 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/plugins/bluetooth/dbusinterface/xml/org.deepin.dde.Bluetooth1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class Bluetooth1Adaptor
*/
Bluetooth1Adaptor::Bluetooth1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
Bluetooth1Adaptor::~Bluetooth1Adaptor()
{
// destructor
}
bool Bluetooth1Adaptor::canSendFile() const
{
// get the value of property CanSendFile
return qvariant_cast< bool >(parent()->property("CanSendFile"));
}
bool Bluetooth1Adaptor::displaySwitch() const
{
// get the value of property DisplaySwitch
return qvariant_cast< bool >(parent()->property("DisplaySwitch"));
}
void Bluetooth1Adaptor::setDisplaySwitch(bool value)
{
// set the value of property DisplaySwitch
parent()->setProperty("DisplaySwitch", QVariant::fromValue(value));
}
uint Bluetooth1Adaptor::state() const
{
// get the value of property State
return qvariant_cast< uint >(parent()->property("State"));
}
bool Bluetooth1Adaptor::transportable() const
{
// get the value of property Transportable
return qvariant_cast< bool >(parent()->property("Transportable"));
}
void Bluetooth1Adaptor::CancelTransferSession(const QDBusObjectPath &sessionPath)
{
// handle method call org.deepin.dde.Bluetooth1.CancelTransferSession
QMetaObject::invokeMethod(parent(), "CancelTransferSession", Q_ARG(QDBusObjectPath, sessionPath));
}
void Bluetooth1Adaptor::ClearUnpairedDevice()
{
// handle method call org.deepin.dde.Bluetooth1.ClearUnpairedDevice
QMetaObject::invokeMethod(parent(), "ClearUnpairedDevice");
}
void Bluetooth1Adaptor::Confirm(const QDBusObjectPath &device, bool accept)
{
// handle method call org.deepin.dde.Bluetooth1.Confirm
QMetaObject::invokeMethod(parent(), "Confirm", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept));
}
void Bluetooth1Adaptor::ConnectDevice(const QDBusObjectPath &device, const QDBusObjectPath &adapter)
{
// handle method call org.deepin.dde.Bluetooth1.ConnectDevice
QMetaObject::invokeMethod(parent(), "ConnectDevice", Q_ARG(QDBusObjectPath, device), Q_ARG(QDBusObjectPath, adapter));
}
QString Bluetooth1Adaptor::DebugInfo()
{
// handle method call org.deepin.dde.Bluetooth1.DebugInfo
QString info;
QMetaObject::invokeMethod(parent(), "DebugInfo", Q_RETURN_ARG(QString, info));
return info;
}
void Bluetooth1Adaptor::DisconnectDevice(const QDBusObjectPath &device)
{
// handle method call org.deepin.dde.Bluetooth1.DisconnectDevice
QMetaObject::invokeMethod(parent(), "DisconnectDevice", Q_ARG(QDBusObjectPath, device));
}
void Bluetooth1Adaptor::FeedPasskey(const QDBusObjectPath &device, bool accept, uint passkey)
{
// handle method call org.deepin.dde.Bluetooth1.FeedPasskey
QMetaObject::invokeMethod(parent(), "FeedPasskey", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept), Q_ARG(uint, passkey));
}
void Bluetooth1Adaptor::FeedPinCode(const QDBusObjectPath &device, bool accept, const QString &pinCode)
{
// handle method call org.deepin.dde.Bluetooth1.FeedPinCode
QMetaObject::invokeMethod(parent(), "FeedPinCode", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept), Q_ARG(QString, pinCode));
}
QString Bluetooth1Adaptor::GetAdapters()
{
// handle method call org.deepin.dde.Bluetooth1.GetAdapters
QString adaptersJSON;
QMetaObject::invokeMethod(parent(), "GetAdapters", Q_RETURN_ARG(QString, adaptersJSON));
return adaptersJSON;
}
QString Bluetooth1Adaptor::GetDevices(const QDBusObjectPath &adapter)
{
// handle method call org.deepin.dde.Bluetooth1.GetDevices
QString devicesJSON;
QMetaObject::invokeMethod(parent(), "GetDevices", Q_RETURN_ARG(QString, devicesJSON), Q_ARG(QDBusObjectPath, adapter));
return devicesJSON;
}
void Bluetooth1Adaptor::RemoveDevice(const QDBusObjectPath &adapter, const QDBusObjectPath &device)
{
// handle method call org.deepin.dde.Bluetooth1.RemoveDevice
QMetaObject::invokeMethod(parent(), "RemoveDevice", Q_ARG(QDBusObjectPath, adapter), Q_ARG(QDBusObjectPath, device));
}
void Bluetooth1Adaptor::RequestDiscovery(const QDBusObjectPath &adapter)
{
// handle method call org.deepin.dde.Bluetooth1.RequestDiscovery
QMetaObject::invokeMethod(parent(), "RequestDiscovery", Q_ARG(QDBusObjectPath, adapter));
}
QDBusObjectPath Bluetooth1Adaptor::SendFiles(const QString &device, const QStringList &files)
{
// handle method call org.deepin.dde.Bluetooth1.SendFiles
QDBusObjectPath sessionPath;
QMetaObject::invokeMethod(parent(), "SendFiles", Q_RETURN_ARG(QDBusObjectPath, sessionPath), Q_ARG(QString, device), Q_ARG(QStringList, files));
return sessionPath;
}
void Bluetooth1Adaptor::SetAdapterAlias(const QDBusObjectPath &adapter, const QString &alias)
{
// handle method call org.deepin.dde.Bluetooth1.SetAdapterAlias
QMetaObject::invokeMethod(parent(), "SetAdapterAlias", Q_ARG(QDBusObjectPath, adapter), Q_ARG(QString, alias));
}
void Bluetooth1Adaptor::SetAdapterDiscoverable(const QDBusObjectPath &adapter, bool discoverable)
{
// handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscoverable
QMetaObject::invokeMethod(parent(), "SetAdapterDiscoverable", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, discoverable));
}
void Bluetooth1Adaptor::SetAdapterDiscoverableTimeout(const QDBusObjectPath &adapter, uint timeout)
{
// handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscoverableTimeout
QMetaObject::invokeMethod(parent(), "SetAdapterDiscoverableTimeout", Q_ARG(QDBusObjectPath, adapter), Q_ARG(uint, timeout));
}
void Bluetooth1Adaptor::SetAdapterDiscovering(const QDBusObjectPath &adapter, bool discovering)
{
// handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscovering
QMetaObject::invokeMethod(parent(), "SetAdapterDiscovering", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, discovering));
}
void Bluetooth1Adaptor::SetAdapterPowered(const QDBusObjectPath &adapter, bool powered)
{
// handle method call org.deepin.dde.Bluetooth1.SetAdapterPowered
QMetaObject::invokeMethod(parent(), "SetAdapterPowered", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, powered));
}
void Bluetooth1Adaptor::SetDeviceAlias(const QDBusObjectPath &device, const QString &alias)
{
// handle method call org.deepin.dde.Bluetooth1.SetDeviceAlias
QMetaObject::invokeMethod(parent(), "SetDeviceAlias", Q_ARG(QDBusObjectPath, device), Q_ARG(QString, alias));
}
void Bluetooth1Adaptor::SetDeviceTrusted(const QDBusObjectPath &device, bool trusted)
{
// handle method call org.deepin.dde.Bluetooth1.SetDeviceTrusted
QMetaObject::invokeMethod(parent(), "SetDeviceTrusted", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, trusted));
}

View File

@ -0,0 +1,253 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/plugins/bluetooth/dbusinterface/xml/org.deepin.dde.Bluetooth1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_BLUETOOTH1ADAPTOR_H
#define ORG_DEEPIN_DDE_BLUETOOTH1ADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1.h"
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 org.deepin.dde.Bluetooth1
*/
class Bluetooth1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Bluetooth1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.Bluetooth1\">\n"
" <method name=\"CancelTransferSession\">\n"
" <arg direction=\"in\" type=\"o\" name=\"sessionPath\"/>\n"
" </method>\n"
" <method name=\"ClearUnpairedDevice\"/>\n"
" <method name=\"Confirm\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"accept\"/>\n"
" </method>\n"
" <method name=\"ConnectDevice\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" </method>\n"
" <method name=\"DebugInfo\">\n"
" <arg direction=\"out\" type=\"s\" name=\"info\"/>\n"
" </method>\n"
" <method name=\"DisconnectDevice\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" </method>\n"
" <method name=\"FeedPasskey\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"accept\"/>\n"
" <arg direction=\"in\" type=\"u\" name=\"passkey\"/>\n"
" </method>\n"
" <method name=\"FeedPinCode\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"accept\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"pinCode\"/>\n"
" </method>\n"
" <method name=\"GetAdapters\">\n"
" <arg direction=\"out\" type=\"s\" name=\"adaptersJSON\"/>\n"
" </method>\n"
" <method name=\"GetDevices\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"devicesJSON\"/>\n"
" </method>\n"
" <method name=\"RemoveDevice\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" </method>\n"
" <method name=\"RequestDiscovery\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" </method>\n"
" <method name=\"SendFiles\">\n"
" <arg direction=\"in\" type=\"s\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"as\" name=\"files\"/>\n"
" <arg direction=\"out\" type=\"o\" name=\"sessionPath\"/>\n"
" </method>\n"
" <method name=\"SetAdapterAlias\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"alias\"/>\n"
" </method>\n"
" <method name=\"SetAdapterDiscoverable\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"discoverable\"/>\n"
" </method>\n"
" <method name=\"SetAdapterDiscoverableTimeout\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"in\" type=\"u\" name=\"timeout\"/>\n"
" </method>\n"
" <method name=\"SetAdapterDiscovering\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"discovering\"/>\n"
" </method>\n"
" <method name=\"SetAdapterPowered\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"powered\"/>\n"
" </method>\n"
" <method name=\"SetDeviceAlias\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"alias\"/>\n"
" </method>\n"
" <method name=\"SetDeviceTrusted\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"trusted\"/>\n"
" </method>\n"
" <signal name=\"AdapterAdded\">\n"
" <arg type=\"s\" name=\"adapterJSON\"/>\n"
" </signal>\n"
" <signal name=\"AdapterRemoved\">\n"
" <arg type=\"s\" name=\"adapterJSON\"/>\n"
" </signal>\n"
" <signal name=\"AdapterPropertiesChanged\">\n"
" <arg type=\"s\" name=\"adapterJSON\"/>\n"
" </signal>\n"
" <signal name=\"DeviceAdded\">\n"
" <arg type=\"s\" name=\"devJSON\"/>\n"
" </signal>\n"
" <signal name=\"DeviceRemoved\">\n"
" <arg type=\"s\" name=\"devJSON\"/>\n"
" </signal>\n"
" <signal name=\"DevicePropertiesChanged\">\n"
" <arg type=\"s\" name=\"devJSON\"/>\n"
" </signal>\n"
" <signal name=\"DisplayPinCode\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" <arg type=\"s\" name=\"pinCode\"/>\n"
" </signal>\n"
" <signal name=\"DisplayPasskey\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" <arg type=\"u\" name=\"passkey\"/>\n"
" <arg type=\"u\" name=\"entered\"/>\n"
" </signal>\n"
" <signal name=\"RequestConfirmation\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" <arg type=\"s\" name=\"passkey\"/>\n"
" </signal>\n"
" <signal name=\"RequestAuthorization\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" </signal>\n"
" <signal name=\"RequestPinCode\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" </signal>\n"
" <signal name=\"RequestPasskey\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" </signal>\n"
" <signal name=\"Cancelled\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" </signal>\n"
" <signal name=\"ObexSessionCreated\">\n"
" <arg type=\"o\" name=\"sessionPath\"/>\n"
" </signal>\n"
" <signal name=\"ObexSessionRemoved\">\n"
" <arg type=\"o\" name=\"sessionPath\"/>\n"
" </signal>\n"
" <signal name=\"ObexSessionProgress\">\n"
" <arg type=\"o\" name=\"sessionPath\"/>\n"
" <arg type=\"t\" name=\"totalSize\"/>\n"
" <arg type=\"t\" name=\"transferred\"/>\n"
" <arg type=\"i\" name=\"currentIdx\"/>\n"
" </signal>\n"
" <signal name=\"TransferCreated\">\n"
" <arg type=\"s\" name=\"file\"/>\n"
" <arg type=\"o\" name=\"transferPath\"/>\n"
" <arg type=\"o\" name=\"sessionPath\"/>\n"
" </signal>\n"
" <signal name=\"TransferRemoved\">\n"
" <arg type=\"s\" name=\"file\"/>\n"
" <arg type=\"o\" name=\"transferPath\"/>\n"
" <arg type=\"o\" name=\"sessionPath\"/>\n"
" <arg type=\"b\" name=\"done\"/>\n"
" </signal>\n"
" <signal name=\"TransferFailed\">\n"
" <arg type=\"s\" name=\"file\"/>\n"
" <arg type=\"o\" name=\"sessionPath\"/>\n"
" <arg type=\"s\" name=\"errInfo\"/>\n"
" </signal>\n"
" <signal name=\"ConnectFailed\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" </signal>\n"
" <property access=\"read\" type=\"u\" name=\"State\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"DisplaySwitch\"/>\n"
" <property access=\"read\" type=\"b\" name=\"Transportable\"/>\n"
" <property access=\"read\" type=\"b\" name=\"CanSendFile\"/>\n"
" </interface>\n"
"")
public:
Bluetooth1Adaptor(QObject *parent);
virtual ~Bluetooth1Adaptor();
public: // PROPERTIES
Q_PROPERTY(bool CanSendFile READ canSendFile)
bool canSendFile() const;
Q_PROPERTY(bool DisplaySwitch READ displaySwitch WRITE setDisplaySwitch)
bool displaySwitch() const;
void setDisplaySwitch(bool value);
Q_PROPERTY(uint State READ state)
uint state() const;
Q_PROPERTY(bool Transportable READ transportable)
bool transportable() const;
public Q_SLOTS: // METHODS
void CancelTransferSession(const QDBusObjectPath &sessionPath);
void ClearUnpairedDevice();
void Confirm(const QDBusObjectPath &device, bool accept);
void ConnectDevice(const QDBusObjectPath &device, const QDBusObjectPath &adapter);
QString DebugInfo();
void DisconnectDevice(const QDBusObjectPath &device);
void FeedPasskey(const QDBusObjectPath &device, bool accept, uint passkey);
void FeedPinCode(const QDBusObjectPath &device, bool accept, const QString &pinCode);
QString GetAdapters();
QString GetDevices(const QDBusObjectPath &adapter);
void RemoveDevice(const QDBusObjectPath &adapter, const QDBusObjectPath &device);
void RequestDiscovery(const QDBusObjectPath &adapter);
QDBusObjectPath SendFiles(const QString &device, const QStringList &files);
void SetAdapterAlias(const QDBusObjectPath &adapter, const QString &alias);
void SetAdapterDiscoverable(const QDBusObjectPath &adapter, bool discoverable);
void SetAdapterDiscoverableTimeout(const QDBusObjectPath &adapter, uint timeout);
void SetAdapterDiscovering(const QDBusObjectPath &adapter, bool discovering);
void SetAdapterPowered(const QDBusObjectPath &adapter, bool powered);
void SetDeviceAlias(const QDBusObjectPath &device, const QString &alias);
void SetDeviceTrusted(const QDBusObjectPath &device, bool trusted);
Q_SIGNALS: // SIGNALS
void AdapterAdded(const QString &adapterJSON);
void AdapterPropertiesChanged(const QString &adapterJSON);
void AdapterRemoved(const QString &adapterJSON);
void Cancelled(const QDBusObjectPath &device);
void ConnectFailed(const QDBusObjectPath &device);
void DeviceAdded(const QString &devJSON);
void DevicePropertiesChanged(const QString &devJSON);
void DeviceRemoved(const QString &devJSON);
void DisplayPasskey(const QDBusObjectPath &device, uint passkey, uint entered);
void DisplayPinCode(const QDBusObjectPath &device, const QString &pinCode);
void ObexSessionCreated(const QDBusObjectPath &sessionPath);
void ObexSessionProgress(const QDBusObjectPath &sessionPath, qulonglong totalSize, qulonglong transferred, int currentIdx);
void ObexSessionRemoved(const QDBusObjectPath &sessionPath);
void RequestAuthorization(const QDBusObjectPath &device);
void RequestConfirmation(const QDBusObjectPath &device, const QString &passkey);
void RequestPasskey(const QDBusObjectPath &device);
void RequestPinCode(const QDBusObjectPath &device);
void TransferCreated(const QString &file, const QDBusObjectPath &transferPath, const QDBusObjectPath &sessionPath);
void TransferFailed(const QString &file, const QDBusObjectPath &sessionPath, const QString &errInfo);
void TransferRemoved(const QString &file, const QDBusObjectPath &transferPath, const QDBusObjectPath &sessionPath, bool done);
};
#endif

View File

@ -0,0 +1,251 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Display1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class Display1Adaptor
*/
Display1Adaptor::Display1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
Display1Adaptor::~Display1Adaptor()
{
// destructor
}
BrightnessMap Display1Adaptor::brightness() const
{
// get the value of property Brightness
return qvariant_cast< BrightnessMap >(parent()->property("Brightness"));
}
int Display1Adaptor::colorTemperatureManual() const
{
// get the value of property ColorTemperatureManual
return qvariant_cast< int >(parent()->property("ColorTemperatureManual"));
}
int Display1Adaptor::colorTemperatureMode() const
{
// get the value of property ColorTemperatureMode
return qvariant_cast< int >(parent()->property("ColorTemperatureMode"));
}
QString Display1Adaptor::currentCustomId() const
{
// get the value of property CurrentCustomId
return qvariant_cast< QString >(parent()->property("CurrentCustomId"));
}
QStringList Display1Adaptor::customIdList() const
{
// get the value of property CustomIdList
return qvariant_cast< QStringList >(parent()->property("CustomIdList"));
}
uchar Display1Adaptor::displayMode() const
{
// get the value of property DisplayMode
return qvariant_cast< uchar >(parent()->property("DisplayMode"));
}
bool Display1Adaptor::hasChanged() const
{
// get the value of property HasChanged
return qvariant_cast< bool >(parent()->property("HasChanged"));
}
uint Display1Adaptor::maxBacklightBrightness() const
{
// get the value of property MaxBacklightBrightness
return qvariant_cast< uint >(parent()->property("MaxBacklightBrightness"));
}
QList<QDBusObjectPath> Display1Adaptor::monitors() const
{
// get the value of property Monitors
return qvariant_cast< QList<QDBusObjectPath> >(parent()->property("Monitors"));
}
QString Display1Adaptor::primary() const
{
// get the value of property Primary
return qvariant_cast< QString >(parent()->property("Primary"));
}
ScreenRect Display1Adaptor::primaryRect() const
{
// get the value of property PrimaryRect
return qvariant_cast< ScreenRect >(parent()->property("PrimaryRect"));
}
ushort Display1Adaptor::screenHeight() const
{
// get the value of property ScreenHeight
return qvariant_cast< ushort >(parent()->property("ScreenHeight"));
}
ushort Display1Adaptor::screenWidth() const
{
// get the value of property ScreenWidth
return qvariant_cast< ushort >(parent()->property("ScreenWidth"));
}
TouchscreenMap Display1Adaptor::touchMap() const
{
// get the value of property TouchMap
return qvariant_cast< TouchscreenMap >(parent()->property("TouchMap"));
}
TouchscreenInfoList Display1Adaptor::touchscreens() const
{
// get the value of property Touchscreens
return qvariant_cast< TouchscreenInfoList >(parent()->property("Touchscreens"));
}
TouchscreenInfoList_V2 Display1Adaptor::touchscreensV2() const
{
// get the value of property TouchscreensV2
return qvariant_cast< TouchscreenInfoList_V2 >(parent()->property("TouchscreensV2"));
}
void Display1Adaptor::ApplyChanges()
{
// handle method call org.deepin.dde.Display1.ApplyChanges
QMetaObject::invokeMethod(parent(), "ApplyChanges");
}
void Display1Adaptor::AssociateTouch(const QString &in0, const QString &in1)
{
// handle method call org.deepin.dde.Display1.AssociateTouch
QMetaObject::invokeMethod(parent(), "AssociateTouch", Q_ARG(QString, in0), Q_ARG(QString, in1));
}
void Display1Adaptor::AssociateTouchByUUID(const QString &in0, const QString &in1)
{
// handle method call org.deepin.dde.Display1.AssociateTouchByUUID
QMetaObject::invokeMethod(parent(), "AssociateTouchByUUID", Q_ARG(QString, in0), Q_ARG(QString, in1));
}
void Display1Adaptor::ChangeBrightness(bool in0)
{
// handle method call org.deepin.dde.Display1.ChangeBrightness
QMetaObject::invokeMethod(parent(), "ChangeBrightness", Q_ARG(bool, in0));
}
void Display1Adaptor::DeleteCustomMode(const QString &in0)
{
// handle method call org.deepin.dde.Display1.DeleteCustomMode
QMetaObject::invokeMethod(parent(), "DeleteCustomMode", Q_ARG(QString, in0));
}
uchar Display1Adaptor::GetRealDisplayMode()
{
// handle method call org.deepin.dde.Display1.GetRealDisplayMode
uchar out0;
QMetaObject::invokeMethod(parent(), "GetRealDisplayMode", Q_RETURN_ARG(uchar, out0));
return out0;
}
QStringList Display1Adaptor::ListOutputNames()
{
// handle method call org.deepin.dde.Display1.ListOutputNames
QStringList out0;
QMetaObject::invokeMethod(parent(), "ListOutputNames", Q_RETURN_ARG(QStringList, out0));
return out0;
}
ResolutionList Display1Adaptor::ListOutputsCommonModes()
{
// handle method call org.deepin.dde.Display1.ListOutputsCommonModes
ResolutionList out0;
QMetaObject::invokeMethod(parent(), "ListOutputsCommonModes", Q_RETURN_ARG(ResolutionList, out0));
return out0;
}
void Display1Adaptor::ModifyConfigName(const QString &in0, const QString &in1)
{
// handle method call org.deepin.dde.Display1.ModifyConfigName
QMetaObject::invokeMethod(parent(), "ModifyConfigName", Q_ARG(QString, in0), Q_ARG(QString, in1));
}
void Display1Adaptor::RefreshBrightness()
{
// handle method call org.deepin.dde.Display1.RefreshBrightness
QMetaObject::invokeMethod(parent(), "RefreshBrightness");
}
void Display1Adaptor::Reset()
{
// handle method call org.deepin.dde.Display1.Reset
QMetaObject::invokeMethod(parent(), "Reset");
}
void Display1Adaptor::ResetChanges()
{
// handle method call org.deepin.dde.Display1.ResetChanges
QMetaObject::invokeMethod(parent(), "ResetChanges");
}
void Display1Adaptor::Save()
{
// handle method call org.deepin.dde.Display1.Save
QMetaObject::invokeMethod(parent(), "Save");
}
void Display1Adaptor::SetAndSaveBrightness(const QString &in0, double in1)
{
// handle method call org.deepin.dde.Display1.SetAndSaveBrightness
QMetaObject::invokeMethod(parent(), "SetAndSaveBrightness", Q_ARG(QString, in0), Q_ARG(double, in1));
}
void Display1Adaptor::SetBrightness(const QString &in0, double in1)
{
// handle method call org.deepin.dde.Display1.SetBrightness
QMetaObject::invokeMethod(parent(), "SetBrightness", Q_ARG(QString, in0), Q_ARG(double, in1));
}
void Display1Adaptor::SetColorTemperature(int in0)
{
// handle method call org.deepin.dde.Display1.SetColorTemperature
QMetaObject::invokeMethod(parent(), "SetColorTemperature", Q_ARG(int, in0));
}
void Display1Adaptor::SetMethodAdjustCCT(int in0)
{
// handle method call org.deepin.dde.Display1.SetMethodAdjustCCT
QMetaObject::invokeMethod(parent(), "SetMethodAdjustCCT", Q_ARG(int, in0));
}
void Display1Adaptor::SetPrimary(const QString &in0)
{
// handle method call org.deepin.dde.Display1.SetPrimary
QMetaObject::invokeMethod(parent(), "SetPrimary", Q_ARG(QString, in0));
}
void Display1Adaptor::SwitchMode(uchar in0, const QString &in1)
{
// handle method call org.deepin.dde.Display1.SwitchMode
QMetaObject::invokeMethod(parent(), "SwitchMode", Q_ARG(uchar, in0), Q_ARG(QString, in1));
}

View File

@ -0,0 +1,194 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Display1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_DISPLAY1ADAPTOR_H
#define ORG_DEEPIN_DDE_DISPLAY1ADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.h"
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 org.deepin.dde.Display1
*/
class Display1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Display1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.Display1\">\n"
" <method name=\"ApplyChanges\"/>\n"
" <method name=\"AssociateTouch\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"AssociateTouchByUUID\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"ChangeBrightness\">\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"DeleteCustomMode\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"GetRealDisplayMode\">\n"
" <arg direction=\"out\" type=\"y\"/>\n"
" </method>\n"
" <method name=\"ListOutputNames\">\n"
" <arg direction=\"out\" type=\"as\"/>\n"
" </method>\n"
" <method name=\"ListOutputsCommonModes\">\n"
" <arg direction=\"out\" type=\"a(uqqd)\"/>\n"
" <annotation value=\"ResolutionList\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
" </method>\n"
" <method name=\"ModifyConfigName\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"RefreshBrightness\"/>\n"
" <method name=\"Reset\"/>\n"
" <method name=\"ResetChanges\"/>\n"
" <method name=\"Save\"/>\n"
" <method name=\"SetAndSaveBrightness\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"d\"/>\n"
" </method>\n"
" <method name=\"SetBrightness\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"d\"/>\n"
" </method>\n"
" <method name=\"SetPrimary\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SwitchMode\">\n"
" <arg direction=\"in\" type=\"y\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SetMethodAdjustCCT\">\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" </method>\n"
" <method name=\"SetColorTemperature\">\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" </method>\n"
" <property access=\"read\" type=\"b\" name=\"HasChanged\"/>\n"
" <property access=\"read\" type=\"y\" name=\"DisplayMode\"/>\n"
" <property access=\"read\" type=\"q\" name=\"ScreenWidth\"/>\n"
" <property access=\"read\" type=\"q\" name=\"ScreenHeight\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Primary\"/>\n"
" <property access=\"read\" type=\"s\" name=\"CurrentCustomId\"/>\n"
" <property access=\"read\" type=\"as\" name=\"CustomIdList\"/>\n"
" <property access=\"read\" type=\"u\" name=\"MaxBacklightBrightness\"/>\n"
" <property access=\"read\" type=\"(nnqq)\" name=\"PrimaryRect\">\n"
" <annotation value=\"ScreenRect\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"ao\" name=\"Monitors\"/>\n"
" <property access=\"read\" type=\"a{sd}\" name=\"Brightness\">\n"
" <annotation value=\"BrightnessMap\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"a(isss)\" name=\"Touchscreens\">\n"
" <annotation value=\"TouchscreenInfoList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"a(issss)\" name=\"TouchscreensV2\">\n"
" <annotation value=\"TouchscreenInfoList_V2\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"a{ss}\" name=\"TouchMap\">\n"
" <annotation value=\"TouchscreenMap\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"i\" name=\"ColorTemperatureMode\"/>\n"
" <property access=\"read\" type=\"i\" name=\"ColorTemperatureManual\"/>\n"
" </interface>\n"
"")
public:
Display1Adaptor(QObject *parent);
virtual ~Display1Adaptor();
public: // PROPERTIES
Q_PROPERTY(BrightnessMap Brightness READ brightness)
BrightnessMap brightness() const;
Q_PROPERTY(int ColorTemperatureManual READ colorTemperatureManual)
int colorTemperatureManual() const;
Q_PROPERTY(int ColorTemperatureMode READ colorTemperatureMode)
int colorTemperatureMode() const;
Q_PROPERTY(QString CurrentCustomId READ currentCustomId)
QString currentCustomId() const;
Q_PROPERTY(QStringList CustomIdList READ customIdList)
QStringList customIdList() const;
Q_PROPERTY(uchar DisplayMode READ displayMode)
uchar displayMode() const;
Q_PROPERTY(bool HasChanged READ hasChanged)
bool hasChanged() const;
Q_PROPERTY(uint MaxBacklightBrightness READ maxBacklightBrightness)
uint maxBacklightBrightness() const;
Q_PROPERTY(QList<QDBusObjectPath> Monitors READ monitors)
QList<QDBusObjectPath> monitors() const;
Q_PROPERTY(QString Primary READ primary)
QString primary() const;
Q_PROPERTY(ScreenRect PrimaryRect READ primaryRect)
ScreenRect primaryRect() const;
Q_PROPERTY(ushort ScreenHeight READ screenHeight)
ushort screenHeight() const;
Q_PROPERTY(ushort ScreenWidth READ screenWidth)
ushort screenWidth() const;
Q_PROPERTY(TouchscreenMap TouchMap READ touchMap)
TouchscreenMap touchMap() const;
Q_PROPERTY(TouchscreenInfoList Touchscreens READ touchscreens)
TouchscreenInfoList touchscreens() const;
Q_PROPERTY(TouchscreenInfoList_V2 TouchscreensV2 READ touchscreensV2)
TouchscreenInfoList_V2 touchscreensV2() const;
public Q_SLOTS: // METHODS
void ApplyChanges();
void AssociateTouch(const QString &in0, const QString &in1);
void AssociateTouchByUUID(const QString &in0, const QString &in1);
void ChangeBrightness(bool in0);
void DeleteCustomMode(const QString &in0);
uchar GetRealDisplayMode();
QStringList ListOutputNames();
ResolutionList ListOutputsCommonModes();
void ModifyConfigName(const QString &in0, const QString &in1);
void RefreshBrightness();
void Reset();
void ResetChanges();
void Save();
void SetAndSaveBrightness(const QString &in0, double in1);
void SetBrightness(const QString &in0, double in1);
void SetColorTemperature(int in0);
void SetMethodAdjustCCT(int in0);
void SetPrimary(const QString &in0);
void SwitchMode(uchar in0, const QString &in1);
Q_SIGNALS: // SIGNALS
};
#endif

View File

@ -0,0 +1,35 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Gesture1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class Gesture1Adaptor
*/
Gesture1Adaptor::Gesture1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
Gesture1Adaptor::~Gesture1Adaptor()
{
// destructor
}

View File

@ -0,0 +1,76 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Gesture1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_GESTURE1ADAPTOR_H
#define ORG_DEEPIN_DDE_GESTURE1ADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1.h"
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 org.deepin.dde.Gesture1
*/
class Gesture1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Gesture1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.Gesture1\">\n"
" <signal name=\"TouchSinglePressTimeout\">\n"
" <arg type=\"i\" name=\"time\"/>\n"
" <arg type=\"d\" name=\"scalex\"/>\n"
" <arg type=\"d\" name=\"scaley\"/>\n"
" </signal>\n"
" <signal name=\"TouchUpOrCancel\">\n"
" <arg type=\"d\" name=\"scalex\"/>\n"
" <arg type=\"d\" name=\"scaley\"/>\n"
" </signal>\n"
" <signal name=\"TouchMoving\">\n"
" <arg type=\"d\" name=\"scalex\"/>\n"
" <arg type=\"d\" name=\"scaley\"/>\n"
" </signal>\n"
" <signal name=\"TouchPressTimeout\">\n"
" <arg type=\"i\" name=\"fingers\"/>\n"
" <arg type=\"i\" name=\"time\"/>\n"
" <arg type=\"d\" name=\"scalex\"/>\n"
" <arg type=\"d\" name=\"scaley\"/>\n"
" </signal>\n"
" <signal name=\"TouchEdgeEvent\">\n"
" <arg type=\"s\" name=\"direction\"/>\n"
" <arg type=\"d\" name=\"scalex\"/>\n"
" <arg type=\"d\" name=\"scaley\"/>\n"
" </signal>\n"
" </interface>\n"
"")
public:
Gesture1Adaptor(QObject *parent);
virtual ~Gesture1Adaptor();
public: // PROPERTIES
public Q_SLOTS: // METHODS
Q_SIGNALS: // SIGNALS
void TouchEdgeEvent(const QString &direction, double scalex, double scaley);
void TouchMoving(double scalex, double scaley);
void TouchPressTimeout(int fingers, int time, double scalex, double scaley);
void TouchSinglePressTimeout(int time, double scalex, double scaley);
void TouchUpOrCancel(double scalex, double scaley);
};
#endif

View File

@ -0,0 +1,183 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/plugins/keyboard-layout/dbusinterface/xml/org.deepin.dde.InputDevice1.Keyboard.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Keyboard.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class KeyboardAdaptor
*/
KeyboardAdaptor::KeyboardAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
KeyboardAdaptor::~KeyboardAdaptor()
{
// destructor
}
bool KeyboardAdaptor::capslockToggle() const
{
// get the value of property CapslockToggle
return qvariant_cast< bool >(parent()->property("CapslockToggle"));
}
void KeyboardAdaptor::setCapslockToggle(bool value)
{
// set the value of property CapslockToggle
parent()->setProperty("CapslockToggle", QVariant::fromValue(value));
}
QString KeyboardAdaptor::currentLayout() const
{
// get the value of property CurrentLayout
return qvariant_cast< QString >(parent()->property("CurrentLayout"));
}
void KeyboardAdaptor::setCurrentLayout(const QString &value)
{
// set the value of property CurrentLayout
parent()->setProperty("CurrentLayout", QVariant::fromValue(value));
}
int KeyboardAdaptor::cursorBlink() const
{
// get the value of property CursorBlink
return qvariant_cast< int >(parent()->property("CursorBlink"));
}
void KeyboardAdaptor::setCursorBlink(int value)
{
// set the value of property CursorBlink
parent()->setProperty("CursorBlink", QVariant::fromValue(value));
}
int KeyboardAdaptor::layoutScope() const
{
// get the value of property LayoutScope
return qvariant_cast< int >(parent()->property("LayoutScope"));
}
void KeyboardAdaptor::setLayoutScope(int value)
{
// set the value of property LayoutScope
parent()->setProperty("LayoutScope", QVariant::fromValue(value));
}
uint KeyboardAdaptor::repeatDelay() const
{
// get the value of property RepeatDelay
return qvariant_cast< uint >(parent()->property("RepeatDelay"));
}
void KeyboardAdaptor::setRepeatDelay(uint value)
{
// set the value of property RepeatDelay
parent()->setProperty("RepeatDelay", QVariant::fromValue(value));
}
bool KeyboardAdaptor::repeatEnabled() const
{
// get the value of property RepeatEnabled
return qvariant_cast< bool >(parent()->property("RepeatEnabled"));
}
void KeyboardAdaptor::setRepeatEnabled(bool value)
{
// set the value of property RepeatEnabled
parent()->setProperty("RepeatEnabled", QVariant::fromValue(value));
}
uint KeyboardAdaptor::repeatInterval() const
{
// get the value of property RepeatInterval
return qvariant_cast< uint >(parent()->property("RepeatInterval"));
}
void KeyboardAdaptor::setRepeatInterval(uint value)
{
// set the value of property RepeatInterval
parent()->setProperty("RepeatInterval", QVariant::fromValue(value));
}
QStringList KeyboardAdaptor::userLayoutList() const
{
// get the value of property UserLayoutList
return qvariant_cast< QStringList >(parent()->property("UserLayoutList"));
}
QStringList KeyboardAdaptor::userOptionList() const
{
// get the value of property UserOptionList
return qvariant_cast< QStringList >(parent()->property("UserOptionList"));
}
void KeyboardAdaptor::AddLayoutOption(const QString &in0)
{
// handle method call org.deepin.dde.InputDevice1.Keyboard.AddLayoutOption
QMetaObject::invokeMethod(parent(), "AddLayoutOption", Q_ARG(QString, in0));
}
void KeyboardAdaptor::AddUserLayout(const QString &in0)
{
// handle method call org.deepin.dde.InputDevice1.Keyboard.AddUserLayout
QMetaObject::invokeMethod(parent(), "AddUserLayout", Q_ARG(QString, in0));
}
void KeyboardAdaptor::ClearLayoutOption()
{
// handle method call org.deepin.dde.InputDevice1.Keyboard.ClearLayoutOption
QMetaObject::invokeMethod(parent(), "ClearLayoutOption");
}
void KeyboardAdaptor::DeleteLayoutOption(const QString &in0)
{
// handle method call org.deepin.dde.InputDevice1.Keyboard.DeleteLayoutOption
QMetaObject::invokeMethod(parent(), "DeleteLayoutOption", Q_ARG(QString, in0));
}
void KeyboardAdaptor::DeleteUserLayout(const QString &in0)
{
// handle method call org.deepin.dde.InputDevice1.Keyboard.DeleteUserLayout
QMetaObject::invokeMethod(parent(), "DeleteUserLayout", Q_ARG(QString, in0));
}
QString KeyboardAdaptor::GetLayoutDesc(const QString &in0)
{
// handle method call org.deepin.dde.InputDevice1.Keyboard.GetLayoutDesc
QString out0;
QMetaObject::invokeMethod(parent(), "GetLayoutDesc", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0));
return out0;
}
KeyboardLayoutList KeyboardAdaptor::LayoutList()
{
// handle method call org.deepin.dde.InputDevice1.Keyboard.LayoutList
KeyboardLayoutList out0;
QMetaObject::invokeMethod(parent(), "LayoutList", Q_RETURN_ARG(KeyboardLayoutList, out0));
return out0;
}
void KeyboardAdaptor::Reset()
{
// handle method call org.deepin.dde.InputDevice1.Keyboard.Reset
QMetaObject::invokeMethod(parent(), "Reset");
}

View File

@ -0,0 +1,120 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/plugins/keyboard-layout/dbusinterface/xml/org.deepin.dde.InputDevice1.Keyboard.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Keyboard.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_INPUTDEVICE1_KEYBOARDADAPTOR_H
#define ORG_DEEPIN_DDE_INPUTDEVICE1_KEYBOARDADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Keyboard.h"
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 org.deepin.dde.InputDevice1.Keyboard
*/
class KeyboardAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.InputDevice1.Keyboard")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.InputDevice1.Keyboard\">\n"
" <method name=\"AddLayoutOption\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"AddUserLayout\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"ClearLayoutOption\"/>\n"
" <method name=\"DeleteLayoutOption\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"DeleteUserLayout\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"GetLayoutDesc\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"LayoutList\">\n"
" <arg direction=\"out\" type=\"a{ss}\"/>\n"
" <annotation value=\"KeyboardLayoutList\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
" </method>\n"
" <method name=\"Reset\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"RepeatEnabled\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"CapslockToggle\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"CursorBlink\"/>\n"
" <property access=\"readwrite\" type=\"u\" name=\"RepeatInterval\"/>\n"
" <property access=\"readwrite\" type=\"u\" name=\"RepeatDelay\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"LayoutScope\"/>\n"
" <property access=\"readwrite\" type=\"s\" name=\"CurrentLayout\"/>\n"
" <property access=\"read\" type=\"as\" name=\"UserLayoutList\"/>\n"
" <property access=\"read\" type=\"as\" name=\"UserOptionList\"/>\n"
" </interface>\n"
"")
public:
KeyboardAdaptor(QObject *parent);
virtual ~KeyboardAdaptor();
public: // PROPERTIES
Q_PROPERTY(bool CapslockToggle READ capslockToggle WRITE setCapslockToggle)
bool capslockToggle() const;
void setCapslockToggle(bool value);
Q_PROPERTY(QString CurrentLayout READ currentLayout WRITE setCurrentLayout)
QString currentLayout() const;
void setCurrentLayout(const QString &value);
Q_PROPERTY(int CursorBlink READ cursorBlink WRITE setCursorBlink)
int cursorBlink() const;
void setCursorBlink(int value);
Q_PROPERTY(int LayoutScope READ layoutScope WRITE setLayoutScope)
int layoutScope() const;
void setLayoutScope(int value);
Q_PROPERTY(uint RepeatDelay READ repeatDelay WRITE setRepeatDelay)
uint repeatDelay() const;
void setRepeatDelay(uint value);
Q_PROPERTY(bool RepeatEnabled READ repeatEnabled WRITE setRepeatEnabled)
bool repeatEnabled() const;
void setRepeatEnabled(bool value);
Q_PROPERTY(uint RepeatInterval READ repeatInterval WRITE setRepeatInterval)
uint repeatInterval() const;
void setRepeatInterval(uint value);
Q_PROPERTY(QStringList UserLayoutList READ userLayoutList)
QStringList userLayoutList() const;
Q_PROPERTY(QStringList UserOptionList READ userOptionList)
QStringList userOptionList() const;
public Q_SLOTS: // METHODS
void AddLayoutOption(const QString &in0);
void AddUserLayout(const QString &in0);
void ClearLayoutOption();
void DeleteLayoutOption(const QString &in0);
void DeleteUserLayout(const QString &in0);
QString GetLayoutDesc(const QString &in0);
KeyboardLayoutList LayoutList();
void Reset();
Q_SIGNALS: // SIGNALS
};
#endif

View File

@ -0,0 +1,85 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Launcher1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class Launcher1Adaptor
*/
Launcher1Adaptor::Launcher1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
Launcher1Adaptor::~Launcher1Adaptor()
{
// destructor
}
bool Launcher1Adaptor::visible() const
{
// get the value of property Visible
return qvariant_cast< bool >(parent()->property("Visible"));
}
void Launcher1Adaptor::Exit()
{
// handle method call org.deepin.dde.Launcher1.Exit
QMetaObject::invokeMethod(parent(), "Exit");
}
void Launcher1Adaptor::Hide()
{
// handle method call org.deepin.dde.Launcher1.Hide
QMetaObject::invokeMethod(parent(), "Hide");
}
bool Launcher1Adaptor::IsVisible()
{
// handle method call org.deepin.dde.Launcher1.IsVisible
bool out0;
QMetaObject::invokeMethod(parent(), "IsVisible", Q_RETURN_ARG(bool, out0));
return out0;
}
void Launcher1Adaptor::Show()
{
// handle method call org.deepin.dde.Launcher1.Show
QMetaObject::invokeMethod(parent(), "Show");
}
void Launcher1Adaptor::ShowByMode(qlonglong in0)
{
// handle method call org.deepin.dde.Launcher1.ShowByMode
QMetaObject::invokeMethod(parent(), "ShowByMode", Q_ARG(qlonglong, in0));
}
void Launcher1Adaptor::Toggle()
{
// handle method call org.deepin.dde.Launcher1.Toggle
QMetaObject::invokeMethod(parent(), "Toggle");
}
void Launcher1Adaptor::UninstallApp(const QString &appKey)
{
// handle method call org.deepin.dde.Launcher1.UninstallApp
QMetaObject::invokeMethod(parent(), "UninstallApp", Q_ARG(QString, appKey));
}

View File

@ -0,0 +1,79 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Launcher1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_LAUNCHER1ADAPTOR_H
#define ORG_DEEPIN_DDE_LAUNCHER1ADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1.h"
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 org.deepin.dde.Launcher1
*/
class Launcher1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Launcher1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.Launcher1\">\n"
" <property access=\"read\" type=\"b\" name=\"Visible\"/>\n"
" <signal name=\"Closed\"/>\n"
" <signal name=\"Shown\"/>\n"
" <signal name=\"VisibleChanged\">\n"
" <arg direction=\"out\" type=\"b\" name=\"visible\"/>\n"
" </signal>\n"
" <method name=\"Exit\"/>\n"
" <method name=\"Hide\"/>\n"
" <method name=\"Show\"/>\n"
" <method name=\"ShowByMode\">\n"
" <arg direction=\"in\" type=\"x\" name=\"in0\"/>\n"
" </method>\n"
" <method name=\"UninstallApp\">\n"
" <arg direction=\"in\" type=\"s\" name=\"appKey\"/>\n"
" </method>\n"
" <method name=\"Toggle\"/>\n"
" <method name=\"IsVisible\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" </interface>\n"
"")
public:
Launcher1Adaptor(QObject *parent);
virtual ~Launcher1Adaptor();
public: // PROPERTIES
Q_PROPERTY(bool Visible READ visible)
bool visible() const;
public Q_SLOTS: // METHODS
void Exit();
void Hide();
bool IsVisible();
void Show();
void ShowByMode(qlonglong in0);
void Toggle();
void UninstallApp(const QString &appKey);
Q_SIGNALS: // SIGNALS
void Closed();
void Shown();
void VisibleChanged(bool visible);
};
#endif

View File

@ -0,0 +1,41 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/plugins/power/dbus/org.deepin.dde.Power1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class Power1Adaptor
*/
Power1Adaptor::Power1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
Power1Adaptor::~Power1Adaptor()
{
// destructor
}
BatteryPercentageMap Power1Adaptor::batteryPercentage() const
{
// get the value of property BatteryPercentage
return qvariant_cast< BatteryPercentageMap >(parent()->property("BatteryPercentage"));
}

View File

@ -0,0 +1,53 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/plugins/power/dbus/org.deepin.dde.Power1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_POWER1ADAPTOR_H
#define ORG_DEEPIN_DDE_POWER1ADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1.h"
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 org.deepin.dde.Power1
*/
class Power1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Power1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.Power1\">\n"
" <property access=\"read\" type=\"a{sd}\" name=\"BatteryPercentage\">\n"
" <annotation value=\"BatteryPercentageMap\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" </interface>\n"
"")
public:
Power1Adaptor(QObject *parent);
virtual ~Power1Adaptor();
public: // PROPERTIES
Q_PROPERTY(BatteryPercentageMap BatteryPercentage READ batteryPercentage)
BatteryPercentageMap batteryPercentage() const;
public Q_SLOTS: // METHODS
Q_SIGNALS: // SIGNALS
};
#endif

View File

@ -0,0 +1,181 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/plugins/power/dbusinterface/xml/org.deepin.dde.SystemPower1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class Power1Adaptor
*/
Power1Adaptor::Power1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
Power1Adaptor::~Power1Adaptor()
{
// destructor
}
double Power1Adaptor::batteryPercentage() const
{
// get the value of property BatteryPercentage
return qvariant_cast< double >(parent()->property("BatteryPercentage"));
}
uint Power1Adaptor::batteryStatus() const
{
// get the value of property BatteryStatus
return qvariant_cast< uint >(parent()->property("BatteryStatus"));
}
qulonglong Power1Adaptor::batteryTimeToEmpty() const
{
// get the value of property BatteryTimeToEmpty
return qvariant_cast< qulonglong >(parent()->property("BatteryTimeToEmpty"));
}
qulonglong Power1Adaptor::batteryTimeToFull() const
{
// get the value of property BatteryTimeToFull
return qvariant_cast< qulonglong >(parent()->property("BatteryTimeToFull"));
}
bool Power1Adaptor::hasBattery() const
{
// get the value of property HasBattery
return qvariant_cast< bool >(parent()->property("HasBattery"));
}
bool Power1Adaptor::hasLidSwitch() const
{
// get the value of property HasLidSwitch
return qvariant_cast< bool >(parent()->property("HasLidSwitch"));
}
bool Power1Adaptor::isHighPerformanceSupported() const
{
// get the value of property IsHighPerformanceSupported
return qvariant_cast< bool >(parent()->property("IsHighPerformanceSupported"));
}
QString Power1Adaptor::mode() const
{
// get the value of property Mode
return qvariant_cast< QString >(parent()->property("Mode"));
}
bool Power1Adaptor::onBattery() const
{
// get the value of property OnBattery
return qvariant_cast< bool >(parent()->property("OnBattery"));
}
bool Power1Adaptor::powerSavingModeAuto() const
{
// get the value of property PowerSavingModeAuto
return qvariant_cast< bool >(parent()->property("PowerSavingModeAuto"));
}
void Power1Adaptor::setPowerSavingModeAuto(bool value)
{
// set the value of property PowerSavingModeAuto
parent()->setProperty("PowerSavingModeAuto", QVariant::fromValue(value));
}
bool Power1Adaptor::powerSavingModeAutoWhenBatteryLow() const
{
// get the value of property PowerSavingModeAutoWhenBatteryLow
return qvariant_cast< bool >(parent()->property("PowerSavingModeAutoWhenBatteryLow"));
}
void Power1Adaptor::setPowerSavingModeAutoWhenBatteryLow(bool value)
{
// set the value of property PowerSavingModeAutoWhenBatteryLow
parent()->setProperty("PowerSavingModeAutoWhenBatteryLow", QVariant::fromValue(value));
}
uint Power1Adaptor::powerSavingModeBrightnessDropPercent() const
{
// get the value of property PowerSavingModeBrightnessDropPercent
return qvariant_cast< uint >(parent()->property("PowerSavingModeBrightnessDropPercent"));
}
void Power1Adaptor::setPowerSavingModeBrightnessDropPercent(uint value)
{
// set the value of property PowerSavingModeBrightnessDropPercent
parent()->setProperty("PowerSavingModeBrightnessDropPercent", QVariant::fromValue(value));
}
bool Power1Adaptor::powerSavingModeEnabled() const
{
// get the value of property PowerSavingModeEnabled
return qvariant_cast< bool >(parent()->property("PowerSavingModeEnabled"));
}
void Power1Adaptor::setPowerSavingModeEnabled(bool value)
{
// set the value of property PowerSavingModeEnabled
parent()->setProperty("PowerSavingModeEnabled", QVariant::fromValue(value));
}
bool Power1Adaptor::powerSystemAutoToSleepWhenFree() const
{
// get the value of property PowerSystemAutoToSleepWhenFree
return qvariant_cast< bool >(parent()->property("PowerSystemAutoToSleepWhenFree"));
}
void Power1Adaptor::setPowerSystemAutoToSleepWhenFree(bool value)
{
// set the value of property PowerSystemAutoToSleepWhenFree
parent()->setProperty("PowerSystemAutoToSleepWhenFree", QVariant::fromValue(value));
}
QList<QDBusObjectPath> Power1Adaptor::GetBatteries()
{
// handle method call org.deepin.dde.Power1.GetBatteries
QList<QDBusObjectPath> batteries;
QMetaObject::invokeMethod(parent(), "GetBatteries", Q_RETURN_ARG(QList<QDBusObjectPath>, batteries));
return batteries;
}
void Power1Adaptor::Refresh()
{
// handle method call org.deepin.dde.Power1.Refresh
QMetaObject::invokeMethod(parent(), "Refresh");
}
void Power1Adaptor::RefreshBatteries()
{
// handle method call org.deepin.dde.Power1.RefreshBatteries
QMetaObject::invokeMethod(parent(), "RefreshBatteries");
}
void Power1Adaptor::RefreshMains()
{
// handle method call org.deepin.dde.Power1.RefreshMains
QMetaObject::invokeMethod(parent(), "RefreshMains");
}
void Power1Adaptor::SetMode(const QString &mode)
{
// handle method call org.deepin.dde.Power1.SetMode
QMetaObject::invokeMethod(parent(), "SetMode", Q_ARG(QString, mode));
}

View File

@ -0,0 +1,138 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/plugins/power/dbusinterface/xml/org.deepin.dde.SystemPower1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_SYSTEMPOWER1ADAPTOR_H
#define ORG_DEEPIN_DDE_SYSTEMPOWER1ADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1.h"
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 org.deepin.dde.Power1
*/
class Power1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Power1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.Power1\">\n"
" <method name=\"GetBatteries\">\n"
" <arg direction=\"out\" type=\"ao\" name=\"batteries\"/>\n"
" </method>\n"
" <method name=\"Refresh\"/>\n"
" <method name=\"SetMode\">\n"
" <arg direction=\"in\" type=\"s\" name=\"mode\"/>\n"
" </method>\n"
" <method name=\"RefreshBatteries\"/>\n"
" <method name=\"RefreshMains\"/>\n"
" <signal name=\"BatteryDisplayUpdate\">\n"
" <arg type=\"x\" name=\"timestamp\"/>\n"
" </signal>\n"
" <signal name=\"BatteryAdded\">\n"
" <arg type=\"o\" name=\"objpath\"/>\n"
" </signal>\n"
" <signal name=\"BatteryRemoved\">\n"
" <arg type=\"o\" name=\"objpath\"/>\n"
" </signal>\n"
" <signal name=\"LidClosed\"/>\n"
" <signal name=\"LidOpened\"/>\n"
" <property access=\"read\" type=\"b\" name=\"OnBattery\"/>\n"
" <property access=\"read\" type=\"t\" name=\"BatteryTimeToEmpty\"/>\n"
" <property access=\"read\" type=\"t\" name=\"BatteryTimeToFull\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"PowerSavingModeEnabled\"/>\n"
" <property access=\"read\" type=\"b\" name=\"HasLidSwitch\"/>\n"
" <property access=\"read\" type=\"b\" name=\"HasBattery\"/>\n"
" <property access=\"read\" type=\"d\" name=\"BatteryPercentage\"/>\n"
" <property access=\"read\" type=\"u\" name=\"BatteryStatus\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"PowerSavingModeAuto\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"PowerSystemAutoToSleepWhenFree\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"PowerSavingModeAutoWhenBatteryLow\"/>\n"
" <property access=\"readwrite\" type=\"u\" name=\"PowerSavingModeBrightnessDropPercent\"/>\n"
" <property access=\"read\" type=\"b\" name=\"IsHighPerformanceSupported\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Mode\"/>\n"
" </interface>\n"
"")
public:
Power1Adaptor(QObject *parent);
virtual ~Power1Adaptor();
public: // PROPERTIES
Q_PROPERTY(double BatteryPercentage READ batteryPercentage)
double batteryPercentage() const;
Q_PROPERTY(uint BatteryStatus READ batteryStatus)
uint batteryStatus() const;
Q_PROPERTY(qulonglong BatteryTimeToEmpty READ batteryTimeToEmpty)
qulonglong batteryTimeToEmpty() const;
Q_PROPERTY(qulonglong BatteryTimeToFull READ batteryTimeToFull)
qulonglong batteryTimeToFull() const;
Q_PROPERTY(bool HasBattery READ hasBattery)
bool hasBattery() const;
Q_PROPERTY(bool HasLidSwitch READ hasLidSwitch)
bool hasLidSwitch() const;
Q_PROPERTY(bool IsHighPerformanceSupported READ isHighPerformanceSupported)
bool isHighPerformanceSupported() const;
Q_PROPERTY(QString Mode READ mode)
QString mode() const;
Q_PROPERTY(bool OnBattery READ onBattery)
bool onBattery() const;
Q_PROPERTY(bool PowerSavingModeAuto READ powerSavingModeAuto WRITE setPowerSavingModeAuto)
bool powerSavingModeAuto() const;
void setPowerSavingModeAuto(bool value);
Q_PROPERTY(bool PowerSavingModeAutoWhenBatteryLow READ powerSavingModeAutoWhenBatteryLow WRITE setPowerSavingModeAutoWhenBatteryLow)
bool powerSavingModeAutoWhenBatteryLow() const;
void setPowerSavingModeAutoWhenBatteryLow(bool value);
Q_PROPERTY(uint PowerSavingModeBrightnessDropPercent READ powerSavingModeBrightnessDropPercent WRITE setPowerSavingModeBrightnessDropPercent)
uint powerSavingModeBrightnessDropPercent() const;
void setPowerSavingModeBrightnessDropPercent(uint value);
Q_PROPERTY(bool PowerSavingModeEnabled READ powerSavingModeEnabled WRITE setPowerSavingModeEnabled)
bool powerSavingModeEnabled() const;
void setPowerSavingModeEnabled(bool value);
Q_PROPERTY(bool PowerSystemAutoToSleepWhenFree READ powerSystemAutoToSleepWhenFree WRITE setPowerSystemAutoToSleepWhenFree)
bool powerSystemAutoToSleepWhenFree() const;
void setPowerSystemAutoToSleepWhenFree(bool value);
public Q_SLOTS: // METHODS
QList<QDBusObjectPath> GetBatteries();
void Refresh();
void RefreshBatteries();
void RefreshMains();
void SetMode(const QString &mode);
Q_SIGNALS: // SIGNALS
void BatteryAdded(const QDBusObjectPath &objpath);
void BatteryDisplayUpdate(qlonglong timestamp);
void BatteryRemoved(const QDBusObjectPath &objpath);
void LidClosed();
void LidOpened();
};
#endif

View File

@ -0,0 +1,239 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Timedate1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class Timedate1Adaptor
*/
Timedate1Adaptor::Timedate1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
Timedate1Adaptor::~Timedate1Adaptor()
{
// destructor
}
bool Timedate1Adaptor::canNTP() const
{
// get the value of property CanNTP
return qvariant_cast< bool >(parent()->property("CanNTP"));
}
int Timedate1Adaptor::dSTOffset() const
{
// get the value of property DSTOffset
return qvariant_cast< int >(parent()->property("DSTOffset"));
}
void Timedate1Adaptor::setDSTOffset(int value)
{
// set the value of property DSTOffset
parent()->setProperty("DSTOffset", QVariant::fromValue(value));
}
bool Timedate1Adaptor::localRTC() const
{
// get the value of property LocalRTC
return qvariant_cast< bool >(parent()->property("LocalRTC"));
}
int Timedate1Adaptor::longDateFormat() const
{
// get the value of property LongDateFormat
return qvariant_cast< int >(parent()->property("LongDateFormat"));
}
void Timedate1Adaptor::setLongDateFormat(int value)
{
// set the value of property LongDateFormat
parent()->setProperty("LongDateFormat", QVariant::fromValue(value));
}
int Timedate1Adaptor::longTimeFormat() const
{
// get the value of property LongTimeFormat
return qvariant_cast< int >(parent()->property("LongTimeFormat"));
}
void Timedate1Adaptor::setLongTimeFormat(int value)
{
// set the value of property LongTimeFormat
parent()->setProperty("LongTimeFormat", QVariant::fromValue(value));
}
bool Timedate1Adaptor::nTP() const
{
// get the value of property NTP
return qvariant_cast< bool >(parent()->property("NTP"));
}
QString Timedate1Adaptor::nTPServer() const
{
// get the value of property NTPServer
return qvariant_cast< QString >(parent()->property("NTPServer"));
}
int Timedate1Adaptor::shortDateFormat() const
{
// get the value of property ShortDateFormat
return qvariant_cast< int >(parent()->property("ShortDateFormat"));
}
void Timedate1Adaptor::setShortDateFormat(int value)
{
// set the value of property ShortDateFormat
parent()->setProperty("ShortDateFormat", QVariant::fromValue(value));
}
int Timedate1Adaptor::shortTimeFormat() const
{
// get the value of property ShortTimeFormat
return qvariant_cast< int >(parent()->property("ShortTimeFormat"));
}
void Timedate1Adaptor::setShortTimeFormat(int value)
{
// set the value of property ShortTimeFormat
parent()->setProperty("ShortTimeFormat", QVariant::fromValue(value));
}
QString Timedate1Adaptor::timezone() const
{
// get the value of property Timezone
return qvariant_cast< QString >(parent()->property("Timezone"));
}
bool Timedate1Adaptor::use24HourFormat() const
{
// get the value of property Use24HourFormat
return qvariant_cast< bool >(parent()->property("Use24HourFormat"));
}
void Timedate1Adaptor::setUse24HourFormat(bool value)
{
// set the value of property Use24HourFormat
parent()->setProperty("Use24HourFormat", QVariant::fromValue(value));
}
QStringList Timedate1Adaptor::userTimezones() const
{
// get the value of property UserTimezones
return qvariant_cast< QStringList >(parent()->property("UserTimezones"));
}
int Timedate1Adaptor::weekBegins() const
{
// get the value of property WeekBegins
return qvariant_cast< int >(parent()->property("WeekBegins"));
}
void Timedate1Adaptor::setWeekBegins(int value)
{
// set the value of property WeekBegins
parent()->setProperty("WeekBegins", QVariant::fromValue(value));
}
int Timedate1Adaptor::weekdayFormat() const
{
// get the value of property WeekdayFormat
return qvariant_cast< int >(parent()->property("WeekdayFormat"));
}
void Timedate1Adaptor::setWeekdayFormat(int value)
{
// set the value of property WeekdayFormat
parent()->setProperty("WeekdayFormat", QVariant::fromValue(value));
}
void Timedate1Adaptor::AddUserTimezone(const QString &in0)
{
// handle method call org.deepin.dde.Timedate1.AddUserTimezone
QMetaObject::invokeMethod(parent(), "AddUserTimezone", Q_ARG(QString, in0));
}
void Timedate1Adaptor::DeleteUserTimezone(const QString &in0)
{
// handle method call org.deepin.dde.Timedate1.DeleteUserTimezone
QMetaObject::invokeMethod(parent(), "DeleteUserTimezone", Q_ARG(QString, in0));
}
QStringList Timedate1Adaptor::GetSampleNTPServers()
{
// handle method call org.deepin.dde.Timedate1.GetSampleNTPServers
QStringList out0;
QMetaObject::invokeMethod(parent(), "GetSampleNTPServers", Q_RETURN_ARG(QStringList, out0));
return out0;
}
ZoneInfo Timedate1Adaptor::GetZoneInfo(const QString &in0)
{
// handle method call org.deepin.dde.Timedate1.GetZoneInfo
ZoneInfo out0;
QMetaObject::invokeMethod(parent(), "GetZoneInfo", Q_RETURN_ARG(ZoneInfo, out0), Q_ARG(QString, in0));
return out0;
}
QStringList Timedate1Adaptor::GetZoneList()
{
// handle method call org.deepin.dde.Timedate1.GetZoneList
QStringList out0;
QMetaObject::invokeMethod(parent(), "GetZoneList", Q_RETURN_ARG(QStringList, out0));
return out0;
}
void Timedate1Adaptor::SetDate(int in0, int in1, int in2, int in3, int in4, int in5, int in6)
{
// handle method call org.deepin.dde.Timedate1.SetDate
QMetaObject::invokeMethod(parent(), "SetDate", Q_ARG(int, in0), Q_ARG(int, in1), Q_ARG(int, in2), Q_ARG(int, in3), Q_ARG(int, in4), Q_ARG(int, in5), Q_ARG(int, in6));
}
void Timedate1Adaptor::SetLocalRTC(bool in0, bool in1)
{
// handle method call org.deepin.dde.Timedate1.SetLocalRTC
QMetaObject::invokeMethod(parent(), "SetLocalRTC", Q_ARG(bool, in0), Q_ARG(bool, in1));
}
void Timedate1Adaptor::SetNTP(bool in0)
{
// handle method call org.deepin.dde.Timedate1.SetNTP
QMetaObject::invokeMethod(parent(), "SetNTP", Q_ARG(bool, in0));
}
void Timedate1Adaptor::SetNTPServer(const QString &in0)
{
// handle method call org.deepin.dde.Timedate1.SetNTPServer
QMetaObject::invokeMethod(parent(), "SetNTPServer", Q_ARG(QString, in0));
}
void Timedate1Adaptor::SetTime(qlonglong in0, bool in1)
{
// handle method call org.deepin.dde.Timedate1.SetTime
QMetaObject::invokeMethod(parent(), "SetTime", Q_ARG(qlonglong, in0), Q_ARG(bool, in1));
}
void Timedate1Adaptor::SetTimezone(const QString &in0)
{
// handle method call org.deepin.dde.Timedate1.SetTimezone
QMetaObject::invokeMethod(parent(), "SetTimezone", Q_ARG(QString, in0));
}

View File

@ -0,0 +1,167 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Timedate1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_TIMEDATE1ADAPTOR_H
#define ORG_DEEPIN_DDE_TIMEDATE1ADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1.h"
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 org.deepin.dde.Timedate1
*/
class Timedate1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Timedate1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.Timedate1\">\n"
" <signal name=\"TimeUpdate\"/>\n"
" <method name=\"AddUserTimezone\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"DeleteUserTimezone\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"GetZoneInfo\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"out\" type=\"(ssi(xxi))\"/>\n"
" <annotation value=\"ZoneInfo\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
" </method>\n"
" <method name=\"GetZoneList\">\n"
" <arg direction=\"out\" type=\"as\"/>\n"
" </method>\n"
" <method name=\"GetSampleNTPServers\">\n"
" <arg direction=\"out\" type=\"as\"/>\n"
" </method>\n"
" <method name=\"SetDate\">\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" </method>\n"
" <method name=\"SetLocalRTC\">\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SetNTP\">\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SetNTPServer\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SetTime\">\n"
" <arg direction=\"in\" type=\"x\"/>\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SetTimezone\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <property access=\"read\" type=\"b\" name=\"CanNTP\"/>\n"
" <property access=\"read\" type=\"b\" name=\"NTP\"/>\n"
" <property access=\"read\" type=\"b\" name=\"LocalRTC\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Timezone\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"Use24HourFormat\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"DSTOffset\"/>\n"
" <property access=\"read\" type=\"as\" name=\"UserTimezones\"/>\n"
" <property access=\"read\" type=\"s\" name=\"NTPServer\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"WeekdayFormat\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"ShortDateFormat\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"LongDateFormat\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"ShortTimeFormat\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"LongTimeFormat\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"WeekBegins\"/>\n"
" </interface>\n"
"")
public:
Timedate1Adaptor(QObject *parent);
virtual ~Timedate1Adaptor();
public: // PROPERTIES
Q_PROPERTY(bool CanNTP READ canNTP)
bool canNTP() const;
Q_PROPERTY(int DSTOffset READ dSTOffset WRITE setDSTOffset)
int dSTOffset() const;
void setDSTOffset(int value);
Q_PROPERTY(bool LocalRTC READ localRTC)
bool localRTC() const;
Q_PROPERTY(int LongDateFormat READ longDateFormat WRITE setLongDateFormat)
int longDateFormat() const;
void setLongDateFormat(int value);
Q_PROPERTY(int LongTimeFormat READ longTimeFormat WRITE setLongTimeFormat)
int longTimeFormat() const;
void setLongTimeFormat(int value);
Q_PROPERTY(bool NTP READ nTP)
bool nTP() const;
Q_PROPERTY(QString NTPServer READ nTPServer)
QString nTPServer() const;
Q_PROPERTY(int ShortDateFormat READ shortDateFormat WRITE setShortDateFormat)
int shortDateFormat() const;
void setShortDateFormat(int value);
Q_PROPERTY(int ShortTimeFormat READ shortTimeFormat WRITE setShortTimeFormat)
int shortTimeFormat() const;
void setShortTimeFormat(int value);
Q_PROPERTY(QString Timezone READ timezone)
QString timezone() const;
Q_PROPERTY(bool Use24HourFormat READ use24HourFormat WRITE setUse24HourFormat)
bool use24HourFormat() const;
void setUse24HourFormat(bool value);
Q_PROPERTY(QStringList UserTimezones READ userTimezones)
QStringList userTimezones() const;
Q_PROPERTY(int WeekBegins READ weekBegins WRITE setWeekBegins)
int weekBegins() const;
void setWeekBegins(int value);
Q_PROPERTY(int WeekdayFormat READ weekdayFormat WRITE setWeekdayFormat)
int weekdayFormat() const;
void setWeekdayFormat(int value);
public Q_SLOTS: // METHODS
void AddUserTimezone(const QString &in0);
void DeleteUserTimezone(const QString &in0);
QStringList GetSampleNTPServers();
ZoneInfo GetZoneInfo(const QString &in0);
QStringList GetZoneList();
void SetDate(int in0, int in1, int in2, int in3, int in4, int in5, int in6);
void SetLocalRTC(bool in0, bool in1);
void SetNTP(bool in0);
void SetNTPServer(const QString &in0);
void SetTime(qlonglong in0, bool in1);
void SetTimezone(const QString &in0);
Q_SIGNALS: // SIGNALS
void TimeUpdate();
};
#endif

View File

@ -0,0 +1,57 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.WMSwitcher1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class WMSwitcher1Adaptor
*/
WMSwitcher1Adaptor::WMSwitcher1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
WMSwitcher1Adaptor::~WMSwitcher1Adaptor()
{
// destructor
}
bool WMSwitcher1Adaptor::AllowSwitch()
{
// handle method call org.deepin.dde.WMSwitcher1.AllowSwitch
bool outArg0;
QMetaObject::invokeMethod(parent(), "AllowSwitch", Q_RETURN_ARG(bool, outArg0));
return outArg0;
}
QString WMSwitcher1Adaptor::CurrentWM()
{
// handle method call org.deepin.dde.WMSwitcher1.CurrentWM
QString outArg0;
QMetaObject::invokeMethod(parent(), "CurrentWM", Q_RETURN_ARG(QString, outArg0));
return outArg0;
}
void WMSwitcher1Adaptor::RequestSwitchWM()
{
// handle method call org.deepin.dde.WMSwitcher1.RequestSwitchWM
QMetaObject::invokeMethod(parent(), "RequestSwitchWM");
}

View File

@ -0,0 +1,61 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.WMSwitcher1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_WMSWITCHER1ADAPTOR_H
#define ORG_DEEPIN_DDE_WMSWITCHER1ADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.h"
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 org.deepin.dde.WMSwitcher1
*/
class WMSwitcher1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.WMSwitcher1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.WMSwitcher1\">\n"
" <method name=\"AllowSwitch\">\n"
" <arg direction=\"out\" type=\"b\" name=\"outArg0\"/>\n"
" </method>\n"
" <method name=\"CurrentWM\">\n"
" <arg direction=\"out\" type=\"s\" name=\"outArg0\"/>\n"
" </method>\n"
" <method name=\"RequestSwitchWM\"/>\n"
" <signal name=\"WMChanged\">\n"
" <arg type=\"s\" name=\"wmName\"/>\n"
" </signal>\n"
" </interface>\n"
"")
public:
WMSwitcher1Adaptor(QObject *parent);
virtual ~WMSwitcher1Adaptor();
public: // PROPERTIES
public Q_SLOTS: // METHODS
bool AllowSwitch();
QString CurrentWM();
void RequestSwitchWM();
Q_SIGNALS: // SIGNALS
void WMChanged(const QString &wmName);
};
#endif

View File

@ -0,0 +1,67 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.XEventMonitor1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class XEventMonitor1Adaptor
*/
XEventMonitor1Adaptor::XEventMonitor1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
XEventMonitor1Adaptor::~XEventMonitor1Adaptor()
{
// destructor
}
QString XEventMonitor1Adaptor::RegisterArea(int in0, int in1, int in2, int in3, int in4)
{
// handle method call org.deepin.dde.XEventMonitor1.RegisterArea
QString out0;
QMetaObject::invokeMethod(parent(), "RegisterArea", Q_RETURN_ARG(QString, out0), Q_ARG(int, in0), Q_ARG(int, in1), Q_ARG(int, in2), Q_ARG(int, in3), Q_ARG(int, in4));
return out0;
}
QString XEventMonitor1Adaptor::RegisterAreas(AreaList in0, int in1)
{
// handle method call org.deepin.dde.XEventMonitor1.RegisterAreas
QString out0;
QMetaObject::invokeMethod(parent(), "RegisterAreas", Q_RETURN_ARG(QString, out0), Q_ARG(AreaList, in0), Q_ARG(int, in1));
return out0;
}
QString XEventMonitor1Adaptor::RegisterFullScreen()
{
// handle method call org.deepin.dde.XEventMonitor1.RegisterFullScreen
QString out0;
QMetaObject::invokeMethod(parent(), "RegisterFullScreen", Q_RETURN_ARG(QString, out0));
return out0;
}
bool XEventMonitor1Adaptor::UnregisterArea(const QString &in0)
{
// handle method call org.deepin.dde.XEventMonitor1.UnregisterArea
bool out0;
QMetaObject::invokeMethod(parent(), "UnregisterArea", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0));
return out0;
}

View File

@ -0,0 +1,120 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.XEventMonitor1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_XEVENTMONITOR1ADAPTOR_H
#define ORG_DEEPIN_DDE_XEVENTMONITOR1ADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1.h"
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 org.deepin.dde.XEventMonitor1
*/
class XEventMonitor1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.XEventMonitor1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.XEventMonitor1\">\n"
" <method name=\"RegisterArea\">\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"RegisterAreas\">\n"
" <arg direction=\"in\" type=\"a(iiii)\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" <annotation value=\"AreaList\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
" </method>\n"
" <method name=\"RegisterFullScreen\">\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"UnregisterArea\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <signal name=\"CursorInto\">\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"CursorOut\">\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"CursorMove\">\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"ButtonPress\">\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"ButtonRelease\">\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"KeyPress\">\n"
" <arg type=\"s\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"KeyRelease\">\n"
" <arg type=\"s\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"CancelAllArea\"/>\n"
" </interface>\n"
"")
public:
XEventMonitor1Adaptor(QObject *parent);
virtual ~XEventMonitor1Adaptor();
public: // PROPERTIES
public Q_SLOTS: // METHODS
QString RegisterArea(int in0, int in1, int in2, int in3, int in4);
QString RegisterAreas(AreaList in0, int in1);
QString RegisterFullScreen();
bool UnregisterArea(const QString &in0);
Q_SIGNALS: // SIGNALS
void ButtonPress(int in0, int in1, int in2, const QString &in3);
void ButtonRelease(int in0, int in1, int in2, const QString &in3);
void CancelAllArea();
void CursorInto(int in0, int in1, const QString &in2);
void CursorMove(int in0, int in1, const QString &in2);
void CursorOut(int in0, int in1, const QString &in2);
void KeyPress(const QString &in0, int in1, int in2, const QString &in3);
void KeyRelease(const QString &in0, int in1, int in2, const QString &in3);
};
#endif

View File

@ -0,0 +1,365 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.kwayland.PlasmaWindow.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindowAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindow.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindowAdaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class PlasmaWindowAdaptor
*/
PlasmaWindowAdaptor::PlasmaWindowAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
PlasmaWindowAdaptor::~PlasmaWindowAdaptor()
{
// destructor
}
QString PlasmaWindowAdaptor::AppId()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.AppId
QString out0;
QMetaObject::invokeMethod(parent(), "AppId", Q_RETURN_ARG(QString, out0));
return out0;
}
void PlasmaWindowAdaptor::Destroy()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.Destroy
QMetaObject::invokeMethod(parent(), "Destroy");
}
DockRect PlasmaWindowAdaptor::Geometry()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.Geometry
DockRect out0;
QMetaObject::invokeMethod(parent(), "Geometry", Q_RETURN_ARG(DockRect, out0));
return out0;
}
QString PlasmaWindowAdaptor::Icon()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.Icon
QString out0;
QMetaObject::invokeMethod(parent(), "Icon", Q_RETURN_ARG(QString, out0));
return out0;
}
uint PlasmaWindowAdaptor::InternalId()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.InternalId
uint out0;
QMetaObject::invokeMethod(parent(), "InternalId", Q_RETURN_ARG(uint, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsActive()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsActive
bool out0;
QMetaObject::invokeMethod(parent(), "IsActive", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsCloseable()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsCloseable
bool out0;
QMetaObject::invokeMethod(parent(), "IsCloseable", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsDemandingAttention()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsDemandingAttention
bool out0;
QMetaObject::invokeMethod(parent(), "IsDemandingAttention", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsFullscreen()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsFullscreen
bool out0;
QMetaObject::invokeMethod(parent(), "IsFullscreen", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsFullscreenable()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsFullscreenable
bool out0;
QMetaObject::invokeMethod(parent(), "IsFullscreenable", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsKeepAbove()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsKeepAbove
bool out0;
QMetaObject::invokeMethod(parent(), "IsKeepAbove", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsKeepBelow()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsKeepBelow
bool out0;
QMetaObject::invokeMethod(parent(), "IsKeepBelow", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsMaximizeable()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsMaximizeable
bool out0;
QMetaObject::invokeMethod(parent(), "IsMaximizeable", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsMaximized()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsMaximized
bool out0;
QMetaObject::invokeMethod(parent(), "IsMaximized", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsMinimizeable()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsMinimizeable
bool out0;
QMetaObject::invokeMethod(parent(), "IsMinimizeable", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsMinimized()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsMinimized
bool out0;
QMetaObject::invokeMethod(parent(), "IsMinimized", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsMovable()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsMovable
bool out0;
QMetaObject::invokeMethod(parent(), "IsMovable", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsOnAllDesktops()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsOnAllDesktops
bool out0;
QMetaObject::invokeMethod(parent(), "IsOnAllDesktops", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsResizable()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsResizable
bool out0;
QMetaObject::invokeMethod(parent(), "IsResizable", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsShadeable()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsShadeable
bool out0;
QMetaObject::invokeMethod(parent(), "IsShadeable", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsShaded()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsShaded
bool out0;
QMetaObject::invokeMethod(parent(), "IsShaded", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsValid()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsValid
bool out0;
QMetaObject::invokeMethod(parent(), "IsValid", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::IsVirtualDesktopChangeable()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsVirtualDesktopChangeable
bool out0;
QMetaObject::invokeMethod(parent(), "IsVirtualDesktopChangeable", Q_RETURN_ARG(bool, out0));
return out0;
}
uint PlasmaWindowAdaptor::Pid()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.Pid
uint out0;
QMetaObject::invokeMethod(parent(), "Pid", Q_RETURN_ARG(uint, out0));
return out0;
}
QStringList PlasmaWindowAdaptor::PlasmaVirtualDesktops()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.PlasmaVirtualDesktops
QStringList out0;
QMetaObject::invokeMethod(parent(), "PlasmaVirtualDesktops", Q_RETURN_ARG(QStringList, out0));
return out0;
}
void PlasmaWindowAdaptor::Release()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.Release
QMetaObject::invokeMethod(parent(), "Release");
}
void PlasmaWindowAdaptor::RequestActivate()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestActivate
QMetaObject::invokeMethod(parent(), "RequestActivate");
}
void PlasmaWindowAdaptor::RequestClose()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestClose
QMetaObject::invokeMethod(parent(), "RequestClose");
}
void PlasmaWindowAdaptor::RequestEnterNewVirtualDesktop()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestEnterNewVirtualDesktop
QMetaObject::invokeMethod(parent(), "RequestEnterNewVirtualDesktop");
}
void PlasmaWindowAdaptor::RequestEnterVirtualDesktop(const QString &id)
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestEnterVirtualDesktop
QMetaObject::invokeMethod(parent(), "RequestEnterVirtualDesktop", Q_ARG(QString, id));
}
void PlasmaWindowAdaptor::RequestLeaveVirtualDesktop(const QString &id)
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestLeaveVirtualDesktop
QMetaObject::invokeMethod(parent(), "RequestLeaveVirtualDesktop", Q_ARG(QString, id));
}
void PlasmaWindowAdaptor::RequestMove()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestMove
QMetaObject::invokeMethod(parent(), "RequestMove");
}
void PlasmaWindowAdaptor::RequestResize()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestResize
QMetaObject::invokeMethod(parent(), "RequestResize");
}
void PlasmaWindowAdaptor::RequestToggleKeepAbove()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestToggleKeepAbove
QMetaObject::invokeMethod(parent(), "RequestToggleKeepAbove");
}
void PlasmaWindowAdaptor::RequestToggleKeepBelow()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestToggleKeepBelow
QMetaObject::invokeMethod(parent(), "RequestToggleKeepBelow");
}
void PlasmaWindowAdaptor::RequestToggleMaximized()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestToggleMaximized
QMetaObject::invokeMethod(parent(), "RequestToggleMaximized");
}
void PlasmaWindowAdaptor::RequestToggleMinimized()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestToggleMinimized
QMetaObject::invokeMethod(parent(), "RequestToggleMinimized");
}
void PlasmaWindowAdaptor::RequestToggleShaded()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestToggleShaded
QMetaObject::invokeMethod(parent(), "RequestToggleShaded");
}
void PlasmaWindowAdaptor::RequestVirtualDesktop(uint desktop)
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestVirtualDesktop
QMetaObject::invokeMethod(parent(), "RequestVirtualDesktop", Q_ARG(uint, desktop));
}
bool PlasmaWindowAdaptor::SkipSwitcher()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.SkipSwitcher
bool out0;
QMetaObject::invokeMethod(parent(), "SkipSwitcher", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PlasmaWindowAdaptor::SkipTaskbar()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.SkipTaskbar
bool out0;
QMetaObject::invokeMethod(parent(), "SkipTaskbar", Q_RETURN_ARG(bool, out0));
return out0;
}
QString PlasmaWindowAdaptor::Title()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.Title
QString out0;
QMetaObject::invokeMethod(parent(), "Title", Q_RETURN_ARG(QString, out0));
return out0;
}
uint PlasmaWindowAdaptor::VirtualDesktop()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.VirtualDesktop
uint out0;
QMetaObject::invokeMethod(parent(), "VirtualDesktop", Q_RETURN_ARG(uint, out0));
return out0;
}
uint PlasmaWindowAdaptor::WindowId()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.WindowId
uint out0;
QMetaObject::invokeMethod(parent(), "WindowId", Q_RETURN_ARG(uint, out0));
return out0;
}
QByteArray PlasmaWindowAdaptor::uuid()
{
// handle method call org.deepin.dde.KWayland1.PlasmaWindow.uuid
QByteArray out0;
QMetaObject::invokeMethod(parent(), "uuid", Q_RETURN_ARG(QByteArray, out0));
return out0;
}

View File

@ -0,0 +1,264 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.kwayland.PlasmaWindow.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindowAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindow.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_KWAYLAND_PLASMAWINDOWADAPTOR_H
#define ORG_DEEPIN_DDE_KWAYLAND_PLASMAWINDOWADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindow.h"
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 org.deepin.dde.KWayland1.PlasmaWindow
*/
class PlasmaWindowAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.KWayland1.PlasmaWindow")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.KWayland1.PlasmaWindow\">\n"
" <signal name=\"ActiveChanged\"/>\n"
" <signal name=\"AppIdChanged\"/>\n"
" <signal name=\"CloseableChanged\"/>\n"
" <signal name=\"DemandsAttentionChanged\"/>\n"
" <signal name=\"FullscreenableChanged\"/>\n"
" <signal name=\"FullscreenChanged\"/>\n"
" <signal name=\"GeometryChanged\"/>\n"
" <signal name=\"IconChanged\"/>\n"
" <signal name=\"KeepAboveChanged\"/>\n"
" <signal name=\"KeepBelowChanged\"/>\n"
" <signal name=\"MaximizeableChanged\"/>\n"
" <signal name=\"MaximizedChanged\"/>\n"
" <signal name=\"MinimizeableChanged\"/>\n"
" <signal name=\"MinimizedChanged\"/>\n"
" <signal name=\"MovableChanged\"/>\n"
" <signal name=\"OnAllDesktopsChanged\"/>\n"
" <signal name=\"ParentWindowChanged\"/>\n"
" <signal name=\"PlasmaVirtualDesktopEntered\">\n"
" <arg direction=\"out\" type=\"s\" name=\"id\"/>\n"
" </signal>\n"
" <signal name=\"PlasmaVirtualDesktopLeft\">\n"
" <arg direction=\"out\" type=\"s\" name=\"id\"/>\n"
" </signal>\n"
" <signal name=\"ResizableChanged\"/>\n"
" <signal name=\"ShadeableChanged\"/>\n"
" <signal name=\"ShadedChanged\"/>\n"
" <signal name=\"SkipSwitcherChanged\"/>\n"
" <signal name=\"SkipTaskbarChanged\"/>\n"
" <signal name=\"TitleChanged\"/>\n"
" <signal name=\"Unmapped\"/>\n"
" <signal name=\"VirtualDesktopChangeableChanged\"/>\n"
" <signal name=\"VirtualDesktopChanged\"/>\n"
" <method name=\"AppId\">\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"Destroy\"/>\n"
" <method name=\"Geometry\">\n"
" <arg direction=\"out\" type=\"(iiii)\"/>\n"
" <annotation value=\"DockRect\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
" </method>\n"
" <method name=\"Icon\">\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"InternalId\">\n"
" <arg direction=\"out\" type=\"u\"/>\n"
" </method>\n"
" <method name=\"IsActive\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsCloseable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsDemandingAttention\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsFullscreen\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsFullscreenable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsKeepAbove\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsKeepBelow\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsMaximizeable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsMaximized\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsMinimizeable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsMinimized\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsMovable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsOnAllDesktops\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsResizable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsShadeable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsShaded\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsValid\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsVirtualDesktopChangeable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"Pid\">\n"
" <arg direction=\"out\" type=\"u\"/>\n"
" </method>\n"
" <method name=\"PlasmaVirtualDesktops\">\n"
" <arg direction=\"out\" type=\"as\"/>\n"
" </method>\n"
" <method name=\"Release\"/>\n"
" <method name=\"RequestActivate\"/>\n"
" <method name=\"RequestClose\"/>\n"
" <method name=\"RequestEnterNewVirtualDesktop\"/>\n"
" <method name=\"RequestEnterVirtualDesktop\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" </method>\n"
" <method name=\"RequestLeaveVirtualDesktop\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" </method>\n"
" <method name=\"RequestMove\"/>\n"
" <method name=\"RequestResize\"/>\n"
" <method name=\"RequestToggleKeepAbove\"/>\n"
" <method name=\"RequestToggleKeepBelow\"/>\n"
" <method name=\"RequestToggleMaximized\"/>\n"
" <method name=\"RequestToggleMinimized\"/>\n"
" <method name=\"RequestToggleShaded\"/>\n"
" <method name=\"RequestVirtualDesktop\">\n"
" <arg direction=\"in\" type=\"u\" name=\"desktop\"/>\n"
" </method>\n"
" <method name=\"SkipSwitcher\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SkipTaskbar\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"Title\">\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"VirtualDesktop\">\n"
" <arg direction=\"out\" type=\"u\"/>\n"
" </method>\n"
" <method name=\"WindowId\">\n"
" <arg direction=\"out\" type=\"u\"/>\n"
" </method>\n"
" <method name=\"uuid\">\n"
" <arg direction=\"out\" type=\"ay\"/>\n"
" </method>\n"
" </interface>\n"
"")
public:
PlasmaWindowAdaptor(QObject *parent);
virtual ~PlasmaWindowAdaptor();
public: // PROPERTIES
public Q_SLOTS: // METHODS
QString AppId();
void Destroy();
DockRect Geometry();
QString Icon();
uint InternalId();
bool IsActive();
bool IsCloseable();
bool IsDemandingAttention();
bool IsFullscreen();
bool IsFullscreenable();
bool IsKeepAbove();
bool IsKeepBelow();
bool IsMaximizeable();
bool IsMaximized();
bool IsMinimizeable();
bool IsMinimized();
bool IsMovable();
bool IsOnAllDesktops();
bool IsResizable();
bool IsShadeable();
bool IsShaded();
bool IsValid();
bool IsVirtualDesktopChangeable();
uint Pid();
QStringList PlasmaVirtualDesktops();
void Release();
void RequestActivate();
void RequestClose();
void RequestEnterNewVirtualDesktop();
void RequestEnterVirtualDesktop(const QString &id);
void RequestLeaveVirtualDesktop(const QString &id);
void RequestMove();
void RequestResize();
void RequestToggleKeepAbove();
void RequestToggleKeepBelow();
void RequestToggleMaximized();
void RequestToggleMinimized();
void RequestToggleShaded();
void RequestVirtualDesktop(uint desktop);
bool SkipSwitcher();
bool SkipTaskbar();
QString Title();
uint VirtualDesktop();
uint WindowId();
QByteArray uuid();
Q_SIGNALS: // SIGNALS
void ActiveChanged();
void AppIdChanged();
void CloseableChanged();
void DemandsAttentionChanged();
void FullscreenChanged();
void FullscreenableChanged();
void GeometryChanged();
void IconChanged();
void KeepAboveChanged();
void KeepBelowChanged();
void MaximizeableChanged();
void MaximizedChanged();
void MinimizeableChanged();
void MinimizedChanged();
void MovableChanged();
void OnAllDesktopsChanged();
void ParentWindowChanged();
void PlasmaVirtualDesktopEntered(const QString &id);
void PlasmaVirtualDesktopLeft(const QString &id);
void ResizableChanged();
void ShadeableChanged();
void ShadedChanged();
void SkipSwitcherChanged();
void SkipTaskbarChanged();
void TitleChanged();
void Unmapped();
void VirtualDesktopChangeableChanged();
void VirtualDesktopChanged();
};
#endif

View File

@ -0,0 +1,85 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.kwayland.WindowManager.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManagerAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManager.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManagerAdaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class WindowManagerAdaptor
*/
WindowManagerAdaptor::WindowManagerAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
WindowManagerAdaptor::~WindowManagerAdaptor()
{
// destructor
}
uint WindowManagerAdaptor::ActiveWindow()
{
// handle method call org.deepin.dde.KWayland1.WindowManager.ActiveWindow
uint out0;
QMetaObject::invokeMethod(parent(), "ActiveWindow", Q_RETURN_ARG(uint, out0));
return out0;
}
void WindowManagerAdaptor::HideDesktop()
{
// handle method call org.deepin.dde.KWayland1.WindowManager.HideDesktop
QMetaObject::invokeMethod(parent(), "HideDesktop");
}
bool WindowManagerAdaptor::IsShowingDesktop()
{
// handle method call org.deepin.dde.KWayland1.WindowManager.IsShowingDesktop
bool out0;
QMetaObject::invokeMethod(parent(), "IsShowingDesktop", Q_RETURN_ARG(bool, out0));
return out0;
}
bool WindowManagerAdaptor::IsValid()
{
// handle method call org.deepin.dde.KWayland1.WindowManager.IsValid
bool out0;
QMetaObject::invokeMethod(parent(), "IsValid", Q_RETURN_ARG(bool, out0));
return out0;
}
void WindowManagerAdaptor::SetShowingDesktop(bool show)
{
// handle method call org.deepin.dde.KWayland1.WindowManager.SetShowingDesktop
QMetaObject::invokeMethod(parent(), "SetShowingDesktop", Q_ARG(bool, show));
}
void WindowManagerAdaptor::ShowDesktop()
{
// handle method call org.deepin.dde.KWayland1.WindowManager.ShowDesktop
QMetaObject::invokeMethod(parent(), "ShowDesktop");
}
QVariantList WindowManagerAdaptor::Windows()
{
// handle method call org.deepin.dde.KWayland1.WindowManager.Windows
QVariantList out0;
QMetaObject::invokeMethod(parent(), "Windows", Q_RETURN_ARG(QVariantList, out0));
return out0;
}

View File

@ -0,0 +1,89 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.kwayland.WindowManager.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManagerAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManager.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_DEEPIN_DDE_KWAYLAND_WINDOWMANAGERADAPTOR_H
#define ORG_DEEPIN_DDE_KWAYLAND_WINDOWMANAGERADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManager.h"
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 org.deepin.dde.KWayland1.WindowManager
*/
class WindowManagerAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.KWayland1.WindowManager")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.KWayland1.WindowManager\">\n"
" <signal name=\"InterfaceAboutToBeReleased\"/>\n"
" <signal name=\"InterfaceAboutToBeDestroyed\"/>\n"
" <signal name=\"ShowingDesktopChanged\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </signal>\n"
" <signal name=\"WindowCreated\">\n"
" <arg direction=\"out\" type=\"s\" name=\"dbus\"/>\n"
" </signal>\n"
" <signal name=\"WindowRemove\">\n"
" <arg direction=\"out\" type=\"s\" name=\"dbus\"/>\n"
" </signal>\n"
" <signal name=\"ActiveWindowChanged\"/>\n"
" <method name=\"IsValid\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsShowingDesktop\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SetShowingDesktop\">\n"
" <arg direction=\"in\" type=\"b\" name=\"show\"/>\n"
" </method>\n"
" <method name=\"ShowDesktop\"/>\n"
" <method name=\"HideDesktop\"/>\n"
" <method name=\"Windows\">\n"
" <arg direction=\"out\" type=\"av\"/>\n"
" </method>\n"
" <method name=\"ActiveWindow\">\n"
" <arg direction=\"out\" type=\"u\"/>\n"
" </method>\n"
" </interface>\n"
"")
public:
WindowManagerAdaptor(QObject *parent);
virtual ~WindowManagerAdaptor();
public: // PROPERTIES
public Q_SLOTS: // METHODS
uint ActiveWindow();
void HideDesktop();
bool IsShowingDesktop();
bool IsValid();
void SetShowingDesktop(bool show);
void ShowDesktop();
QVariantList Windows();
Q_SIGNALS: // SIGNALS
void ActiveWindowChanged();
void InterfaceAboutToBeDestroyed();
void InterfaceAboutToBeReleased();
void ShowingDesktopChanged(bool in0);
void WindowCreated(const QString &dbus);
void WindowRemove(const QString &dbus);
};
#endif

View File

@ -0,0 +1,59 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.freedesktop.FileManager.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManagerAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManager.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManagerAdaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class FileManager1Adaptor
*/
FileManager1Adaptor::FileManager1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
FileManager1Adaptor::~FileManager1Adaptor()
{
// destructor
}
void FileManager1Adaptor::ShowFolders(const QStringList &URIs, const QString &StartupId)
{
// handle method call org.freedesktop.FileManager1.ShowFolders
QMetaObject::invokeMethod(parent(), "ShowFolders", Q_ARG(QStringList, URIs), Q_ARG(QString, StartupId));
}
void FileManager1Adaptor::ShowItemProperties(const QStringList &URIs, const QString &StartupId)
{
// handle method call org.freedesktop.FileManager1.ShowItemProperties
QMetaObject::invokeMethod(parent(), "ShowItemProperties", Q_ARG(QStringList, URIs), Q_ARG(QString, StartupId));
}
void FileManager1Adaptor::ShowItems(const QStringList &URIs, const QString &StartupId)
{
// handle method call org.freedesktop.FileManager1.ShowItems
QMetaObject::invokeMethod(parent(), "ShowItems", Q_ARG(QStringList, URIs), Q_ARG(QString, StartupId));
}
void FileManager1Adaptor::Trash(const QStringList &URIs)
{
// handle method call org.freedesktop.FileManager1.Trash
QMetaObject::invokeMethod(parent(), "Trash", Q_ARG(QStringList, URIs));
}

View File

@ -0,0 +1,66 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.freedesktop.FileManager.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManagerAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManager.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_FREEDESKTOP_FILEMANAGERADAPTOR_H
#define ORG_FREEDESKTOP_FILEMANAGERADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManager.h"
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 org.freedesktop.FileManager1
*/
class FileManager1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.freedesktop.FileManager1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.freedesktop.FileManager1\">\n"
" <method name=\"ShowFolders\">\n"
" <arg direction=\"in\" type=\"as\" name=\"URIs\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"StartupId\"/>\n"
" </method>\n"
" <method name=\"ShowItems\">\n"
" <arg direction=\"in\" type=\"as\" name=\"URIs\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"StartupId\"/>\n"
" </method>\n"
" <method name=\"ShowItemProperties\">\n"
" <arg direction=\"in\" type=\"as\" name=\"URIs\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"StartupId\"/>\n"
" </method>\n"
" <method name=\"Trash\">\n"
" <arg direction=\"in\" type=\"as\" name=\"URIs\"/>\n"
" </method>\n"
" </interface>\n"
"")
public:
FileManager1Adaptor(QObject *parent);
virtual ~FileManager1Adaptor();
public: // PROPERTIES
public Q_SLOTS: // METHODS
void ShowFolders(const QStringList &URIs, const QString &StartupId);
void ShowItemProperties(const QStringList &URIs, const QString &StartupId);
void ShowItems(const QStringList &URIs, const QString &StartupId);
void Trash(const QStringList &URIs);
Q_SIGNALS: // SIGNALS
};
#endif

View File

@ -0,0 +1,155 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.kde.StatusNotifierItem.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItemAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItem.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItemAdaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class StatusNotifierItemAdaptor
*/
StatusNotifierItemAdaptor::StatusNotifierItemAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
StatusNotifierItemAdaptor::~StatusNotifierItemAdaptor()
{
// destructor
}
QString StatusNotifierItemAdaptor::attentionIconName() const
{
// get the value of property AttentionIconName
return qvariant_cast< QString >(parent()->property("AttentionIconName"));
}
DBusImageList StatusNotifierItemAdaptor::attentionIconPixmap() const
{
// get the value of property AttentionIconPixmap
return qvariant_cast< DBusImageList >(parent()->property("AttentionIconPixmap"));
}
QString StatusNotifierItemAdaptor::attentionMovieName() const
{
// get the value of property AttentionMovieName
return qvariant_cast< QString >(parent()->property("AttentionMovieName"));
}
QString StatusNotifierItemAdaptor::category() const
{
// get the value of property Category
return qvariant_cast< QString >(parent()->property("Category"));
}
QString StatusNotifierItemAdaptor::iconName() const
{
// get the value of property IconName
return qvariant_cast< QString >(parent()->property("IconName"));
}
DBusImageList StatusNotifierItemAdaptor::iconPixmap() const
{
// get the value of property IconPixmap
return qvariant_cast< DBusImageList >(parent()->property("IconPixmap"));
}
QString StatusNotifierItemAdaptor::iconThemePath() const
{
// get the value of property IconThemePath
return qvariant_cast< QString >(parent()->property("IconThemePath"));
}
QString StatusNotifierItemAdaptor::id() const
{
// get the value of property Id
return qvariant_cast< QString >(parent()->property("Id"));
}
bool StatusNotifierItemAdaptor::itemIsMenu() const
{
// get the value of property ItemIsMenu
return qvariant_cast< bool >(parent()->property("ItemIsMenu"));
}
QDBusObjectPath StatusNotifierItemAdaptor::menu() const
{
// get the value of property Menu
return qvariant_cast< QDBusObjectPath >(parent()->property("Menu"));
}
QString StatusNotifierItemAdaptor::overlayIconName() const
{
// get the value of property OverlayIconName
return qvariant_cast< QString >(parent()->property("OverlayIconName"));
}
DBusImageList StatusNotifierItemAdaptor::overlayIconPixmap() const
{
// get the value of property OverlayIconPixmap
return qvariant_cast< DBusImageList >(parent()->property("OverlayIconPixmap"));
}
QString StatusNotifierItemAdaptor::status() const
{
// get the value of property Status
return qvariant_cast< QString >(parent()->property("Status"));
}
QString StatusNotifierItemAdaptor::title() const
{
// get the value of property Title
return qvariant_cast< QString >(parent()->property("Title"));
}
DBusToolTip StatusNotifierItemAdaptor::toolTip() const
{
// get the value of property ToolTip
return qvariant_cast< DBusToolTip >(parent()->property("ToolTip"));
}
int StatusNotifierItemAdaptor::windowId() const
{
// get the value of property WindowId
return qvariant_cast< int >(parent()->property("WindowId"));
}
void StatusNotifierItemAdaptor::Activate(int x, int y)
{
// handle method call org.kde.StatusNotifierItem.Activate
QMetaObject::invokeMethod(parent(), "Activate", Q_ARG(int, x), Q_ARG(int, y));
}
void StatusNotifierItemAdaptor::ContextMenu(int x, int y)
{
// handle method call org.kde.StatusNotifierItem.ContextMenu
QMetaObject::invokeMethod(parent(), "ContextMenu", Q_ARG(int, x), Q_ARG(int, y));
}
void StatusNotifierItemAdaptor::Scroll(int delta, const QString &orientation)
{
// handle method call org.kde.StatusNotifierItem.Scroll
QMetaObject::invokeMethod(parent(), "Scroll", Q_ARG(int, delta), Q_ARG(QString, orientation));
}
void StatusNotifierItemAdaptor::SecondaryActivate(int x, int y)
{
// handle method call org.kde.StatusNotifierItem.SecondaryActivate
QMetaObject::invokeMethod(parent(), "SecondaryActivate", Q_ARG(int, x), Q_ARG(int, y));
}

View File

@ -0,0 +1,153 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.kde.StatusNotifierItem.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItemAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItem.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef ORG_KDE_STATUSNOTIFIERITEMADAPTOR_H
#define ORG_KDE_STATUSNOTIFIERITEMADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItem.h"
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 org.kde.StatusNotifierItem
*/
class StatusNotifierItemAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.StatusNotifierItem")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.kde.StatusNotifierItem\">\n"
" <property access=\"read\" type=\"s\" name=\"Category\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Id\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Title\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Status\"/>\n"
" <property access=\"read\" type=\"i\" name=\"WindowId\"/>\n"
" <property access=\"read\" type=\"s\" name=\"IconThemePath\"/>\n"
" <property access=\"read\" type=\"o\" name=\"Menu\"/>\n"
" <property access=\"read\" type=\"b\" name=\"ItemIsMenu\"/>\n"
" <property access=\"read\" type=\"s\" name=\"IconName\"/>\n"
" <property access=\"read\" type=\"a(iiay)\" name=\"IconPixmap\">\n"
" <annotation value=\"DBusImageList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"s\" name=\"OverlayIconName\"/>\n"
" <property access=\"read\" type=\"a(iiay)\" name=\"OverlayIconPixmap\">\n"
" <annotation value=\"DBusImageList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"s\" name=\"AttentionIconName\"/>\n"
" <property access=\"read\" type=\"a(iiay)\" name=\"AttentionIconPixmap\">\n"
" <annotation value=\"DBusImageList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"s\" name=\"AttentionMovieName\"/>\n"
" <property access=\"read\" type=\"(sa(iiay)ss)\" name=\"ToolTip\">\n"
" <annotation value=\"DBusToolTip\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <method name=\"ContextMenu\">\n"
" <arg direction=\"in\" type=\"i\" name=\"x\"/>\n"
" <arg direction=\"in\" type=\"i\" name=\"y\"/>\n"
" </method>\n"
" <method name=\"Activate\">\n"
" <arg direction=\"in\" type=\"i\" name=\"x\"/>\n"
" <arg direction=\"in\" type=\"i\" name=\"y\"/>\n"
" </method>\n"
" <method name=\"SecondaryActivate\">\n"
" <arg direction=\"in\" type=\"i\" name=\"x\"/>\n"
" <arg direction=\"in\" type=\"i\" name=\"y\"/>\n"
" </method>\n"
" <method name=\"Scroll\">\n"
" <arg direction=\"in\" type=\"i\" name=\"delta\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"orientation\"/>\n"
" </method>\n"
" <signal name=\"NewTitle\"/>\n"
" <signal name=\"NewIcon\"/>\n"
" <signal name=\"NewAttentionIcon\"/>\n"
" <signal name=\"NewOverlayIcon\"/>\n"
" <signal name=\"NewToolTip\"/>\n"
" <signal name=\"NewStatus\">\n"
" <arg type=\"s\" name=\"status\"/>\n"
" </signal>\n"
" </interface>\n"
"")
public:
StatusNotifierItemAdaptor(QObject *parent);
virtual ~StatusNotifierItemAdaptor();
public: // PROPERTIES
Q_PROPERTY(QString AttentionIconName READ attentionIconName)
QString attentionIconName() const;
Q_PROPERTY(DBusImageList AttentionIconPixmap READ attentionIconPixmap)
DBusImageList attentionIconPixmap() const;
Q_PROPERTY(QString AttentionMovieName READ attentionMovieName)
QString attentionMovieName() const;
Q_PROPERTY(QString Category READ category)
QString category() const;
Q_PROPERTY(QString IconName READ iconName)
QString iconName() const;
Q_PROPERTY(DBusImageList IconPixmap READ iconPixmap)
DBusImageList iconPixmap() const;
Q_PROPERTY(QString IconThemePath READ iconThemePath)
QString iconThemePath() const;
Q_PROPERTY(QString Id READ id)
QString id() const;
Q_PROPERTY(bool ItemIsMenu READ itemIsMenu)
bool itemIsMenu() const;
Q_PROPERTY(QDBusObjectPath Menu READ menu)
QDBusObjectPath menu() const;
Q_PROPERTY(QString OverlayIconName READ overlayIconName)
QString overlayIconName() const;
Q_PROPERTY(DBusImageList OverlayIconPixmap READ overlayIconPixmap)
DBusImageList overlayIconPixmap() const;
Q_PROPERTY(QString Status READ status)
QString status() const;
Q_PROPERTY(QString Title READ title)
QString title() const;
Q_PROPERTY(DBusToolTip ToolTip READ toolTip)
DBusToolTip toolTip() const;
Q_PROPERTY(int WindowId READ windowId)
int windowId() const;
public Q_SLOTS: // METHODS
void Activate(int x, int y);
void ContextMenu(int x, int y);
void Scroll(int delta, const QString &orientation);
void SecondaryActivate(int x, int y);
Q_SIGNALS: // SIGNALS
void NewAttentionIcon();
void NewIcon();
void NewOverlayIcon();
void NewStatus(const QString &status);
void NewTitle();
void NewToolTip();
};
#endif

View File

@ -151,26 +151,11 @@
</context>
<context>
<name>DateTimeDisplayer</name>
<message>
<source>12-hour time</source>
<translation>12-hour time</translation>
</message>
<message>
<source>24-hour time</source>
<translation>24-hour time</translation>
</message>
<message>
<source>Time settings</source>
<translation>Time settings</translation>
</message>
</context>
<context>
<name>DevCollaborationWidget</name>
<message>
<source>PC collaboration</source>
<translation>PC collaboration</translation>
</message>
</context>
<context>
<name>DialogManager</name>
<message>
@ -200,8 +185,8 @@
<context>
<name>DisplaySettingWidget</name>
<message>
<source>Multi-Screen Collaboration</source>
<translation>Multi-Screen Collaboration</translation>
<source>Display Settings</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>

View File

@ -136,54 +136,24 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DBusHandler</name>
<message>
<source>failed to dock </source>
<translation type="unfinished"/>
</message>
<message>
<source>Unrecognized application, unable to dock</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DateTimeDisplayer</name>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DatetimePlugin</name>
<message>
<source>Datetime</source>
<translation type="unfinished"/>
</message>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DevCollaborationWidget</name>
<message>
<source>PC collaboration</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DialogManager</name>
<message>
@ -203,10 +173,17 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplaySettingWidget</name>
<message>
<source>Multi-Screen Collaboration</source>
<source>Display Settings</source>
<translation type="unfinished"/>
</message>
</context>
@ -217,6 +194,33 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation>Oop</translation>
</message>
<message>
<source>Close All</source>
<translation type="unfinished"/>
</message>
<message>
<source>Force Quit</source>
<translation type="unfinished"/>
</message>
<message>
<source>Dock</source>
<translation type="unfinished"/>
</message>
<message>
<source>Undock</source>
<translation type="unfinished"/>
</message>
<message>
<source>All Windows</source>
<translation>Alle Vensters</translation>
</message>
</context>
<context>
<name>HomeMonitorPlugin</name>
<message>
@ -235,6 +239,13 @@
<translation>Lanseerder</translation>
</message>
</context>
<context>
<name>MediaPlayerModel</name>
<message>
<source>Unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>MenuWorker</name>
<message>
@ -301,6 +312,33 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>NotificationPlugin</name>
<message>
<source>Notification</source>
<translation type="unfinished"/>
</message>
<message>
<source>No messages</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notification settings</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notifications</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn off DND mode</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn on DND mode</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OnboardPlugin</name>
<message>

View File

@ -136,54 +136,24 @@
<translation>Add keyboard layout</translation>
</message>
</context>
<context>
<name>DBusHandler</name>
<message>
<source>failed to dock </source>
<translation type="unfinished"/>
</message>
<message>
<source>Unrecognized application, unable to dock</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DateTimeDisplayer</name>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DatetimePlugin</name>
<message>
<source>Datetime</source>
<translation type="unfinished"/>
</message>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DevCollaborationWidget</name>
<message>
<source>PC collaboration</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DialogManager</name>
<message>
@ -203,10 +173,17 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplaySettingWidget</name>
<message>
<source>Multi-Screen Collaboration</source>
<source>Display Settings</source>
<translation type="unfinished"/>
</message>
</context>
@ -217,6 +194,33 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation>Open</translation>
</message>
<message>
<source>Close All</source>
<translation type="unfinished"/>
</message>
<message>
<source>Force Quit</source>
<translation type="unfinished"/>
</message>
<message>
<source>Dock</source>
<translation type="unfinished"/>
</message>
<message>
<source>Undock</source>
<translation type="unfinished"/>
</message>
<message>
<source>All Windows</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>HomeMonitorPlugin</name>
<message>
@ -235,6 +239,13 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>MediaPlayerModel</name>
<message>
<source>Unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>MenuWorker</name>
<message>
@ -301,6 +312,33 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>NotificationPlugin</name>
<message>
<source>Notification</source>
<translation type="unfinished"/>
</message>
<message>
<source>No messages</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notification settings</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notifications</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn off DND mode</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn on DND mode</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OnboardPlugin</name>
<message>

View File

@ -136,54 +136,24 @@
<translation> </translation>
</message>
</context>
<context>
<name>DBusHandler</name>
<message>
<source>failed to dock </source>
<translation type="unfinished"/>
</message>
<message>
<source>Unrecognized application, unable to dock</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DateTimeDisplayer</name>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DatetimePlugin</name>
<message>
<source>Datetime</source>
<translation> </translation>
</message>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation></translation>
</message>
</context>
<context>
<name>DevCollaborationWidget</name>
<message>
<source>PC collaboration</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DialogManager</name>
<message>
@ -203,10 +173,17 @@
<translation> </translation>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplaySettingWidget</name>
<message>
<source>Multi-Screen Collaboration</source>
<source>Display Settings</source>
<translation type="unfinished"/>
</message>
</context>
@ -217,6 +194,33 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation></translation>
</message>
<message>
<source>Close All</source>
<translation type="unfinished"/>
</message>
<message>
<source>Force Quit</source>
<translation type="unfinished"/>
</message>
<message>
<source>Dock</source>
<translation type="unfinished"/>
</message>
<message>
<source>Undock</source>
<translation type="unfinished"/>
</message>
<message>
<source>All Windows</source>
<translation> </translation>
</message>
</context>
<context>
<name>HomeMonitorPlugin</name>
<message>
@ -235,6 +239,13 @@
<translation></translation>
</message>
</context>
<context>
<name>MediaPlayerModel</name>
<message>
<source>Unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>MenuWorker</name>
<message>
@ -301,6 +312,33 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>NotificationPlugin</name>
<message>
<source>Notification</source>
<translation type="unfinished"/>
</message>
<message>
<source>No messages</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notification settings</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notifications</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn off DND mode</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn on DND mode</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OnboardPlugin</name>
<message>

View File

@ -136,54 +136,24 @@
<translation>إضافة تخطيط لوحة مفاتيح</translation>
</message>
</context>
<context>
<name>DBusHandler</name>
<message>
<source>failed to dock </source>
<translation type="unfinished"/>
</message>
<message>
<source>Unrecognized application, unable to dock</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DateTimeDisplayer</name>
<message>
<source>12-hour time</source>
<translation>توقيت 12-ساعة</translation>
</message>
<message>
<source>24-hour time</source>
<translation>توقيت 24-ساعة</translation>
</message>
<message>
<source>Time settings</source>
<translation>إعدادات الوقت</translation>
</message>
</context>
<context>
<name>DatetimePlugin</name>
<message>
<source>Datetime</source>
<translation>الوقت والتاريخ</translation>
</message>
<message>
<source>12-hour time</source>
<translation>توقيت 12-ساعة</translation>
</message>
<message>
<source>24-hour time</source>
<translation>توقيت 24-ساعة</translation>
</message>
<message>
<source>Time settings</source>
<translation>إعدادات الوقت</translation>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation>السطوع</translation>
</message>
</context>
<context>
<name>DevCollaborationWidget</name>
<message>
<source>PC collaboration</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DialogManager</name>
<message>
@ -203,10 +173,17 @@
<translation>لا يمكن استعادة هذا الإجراء</translation>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplaySettingWidget</name>
<message>
<source>Multi-Screen Collaboration</source>
<source>Display Settings</source>
<translation type="unfinished"/>
</message>
</context>
@ -214,7 +191,34 @@
<name>DockPluginController</name>
<message>
<source>The plugin %1 is not compatible with the system.</source>
<translation type="unfinished"/>
<translation>الإضافة 1% غير متوافقة مع النظام.</translation>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation>فتح</translation>
</message>
<message>
<source>Close All</source>
<translation>إغلاق الكل</translation>
</message>
<message>
<source>Force Quit</source>
<translation>الخروج بالقوة</translation>
</message>
<message>
<source>Dock</source>
<translation>الرف</translation>
</message>
<message>
<source>Undock</source>
<translation>إلغاء الإرساء</translation>
</message>
<message>
<source>All Windows</source>
<translation>كل النوافذ</translation>
</message>
</context>
<context>
@ -235,6 +239,13 @@
<translation>المُطلق</translation>
</message>
</context>
<context>
<name>MediaPlayerModel</name>
<message>
<source>Unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>MenuWorker</name>
<message>
@ -301,6 +312,33 @@
<translation>إلغاء الإرساء</translation>
</message>
</context>
<context>
<name>NotificationPlugin</name>
<message>
<source>Notification</source>
<translation type="unfinished"/>
</message>
<message>
<source>No messages</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notification settings</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notifications</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn off DND mode</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn on DND mode</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OnboardPlugin</name>
<message>
@ -344,7 +382,7 @@
</message>
<message>
<source>Battery</source>
<translation type="unfinished"/>
<translation>البطارية</translation>
</message>
</context>
<context>
@ -409,7 +447,7 @@
</message>
<message>
<source>Volume %1</source>
<translation>الصوت 1%</translation>
<translation type="unfinished"/>
</message>
</context>
<context>
@ -464,31 +502,4 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation>فتح</translation>
</message>
<message>
<source>Close All</source>
<translation>إغلاق الكل</translation>
</message>
<message>
<source>Force Quit</source>
<translation>الخروج بالقوة</translation>
</message>
<message>
<source>Dock</source>
<translation>الرف</translation>
</message>
<message>
<source>Undock</source>
<translation>إلغاء الإرساء</translation>
</message>
<message>
<source>All Windows</source>
<translation>كل النوافذ</translation>
</message>
</context>
</TS>

View File

@ -136,54 +136,24 @@
<translation>Amestar distribución de tecláu</translation>
</message>
</context>
<context>
<name>DBusHandler</name>
<message>
<source>failed to dock </source>
<translation type="unfinished"/>
</message>
<message>
<source>Unrecognized application, unable to dock</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DateTimeDisplayer</name>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DatetimePlugin</name>
<message>
<source>Datetime</source>
<translation>Datetime</translation>
</message>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation>Rellumu</translation>
</message>
</context>
<context>
<name>DevCollaborationWidget</name>
<message>
<source>PC collaboration</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DialogManager</name>
<message>
@ -203,10 +173,17 @@
<translation>Esta aición nun pue restaurase</translation>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplaySettingWidget</name>
<message>
<source>Multi-Screen Collaboration</source>
<source>Display Settings</source>
<translation type="unfinished"/>
</message>
</context>
@ -217,6 +194,33 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation>Abrir</translation>
</message>
<message>
<source>Close All</source>
<translation type="unfinished"/>
</message>
<message>
<source>Force Quit</source>
<translation type="unfinished"/>
</message>
<message>
<source>Dock</source>
<translation type="unfinished"/>
</message>
<message>
<source>Undock</source>
<translation type="unfinished"/>
</message>
<message>
<source>All Windows</source>
<translation>Toles ventanes</translation>
</message>
</context>
<context>
<name>HomeMonitorPlugin</name>
<message>
@ -235,6 +239,13 @@
<translation>Llanzador</translation>
</message>
</context>
<context>
<name>MediaPlayerModel</name>
<message>
<source>Unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>MenuWorker</name>
<message>
@ -301,6 +312,33 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>NotificationPlugin</name>
<message>
<source>Notification</source>
<translation type="unfinished"/>
</message>
<message>
<source>No messages</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notification settings</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notifications</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn off DND mode</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn on DND mode</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OnboardPlugin</name>
<message>

View File

@ -136,54 +136,24 @@
<translation>Klaviatura qatı əlavə etmək</translation>
</message>
</context>
<context>
<name>DBusHandler</name>
<message>
<source>failed to dock </source>
<translation>yerləşdirmək mümkün olmadı</translation>
</message>
<message>
<source>Unrecognized application, unable to dock</source>
<translation>Müəyyən edilməmiş tətbiq, yerləşdirmək mümkün olmadı</translation>
</message>
</context>
<context>
<name>DateTimeDisplayer</name>
<message>
<source>12-hour time</source>
<translation>12 saat vaxt formatı</translation>
</message>
<message>
<source>24-hour time</source>
<translation>24 saat vaxt formatı</translation>
</message>
<message>
<source>Time settings</source>
<translation>Vaxt ayarları</translation>
</message>
</context>
<context>
<name>DatetimePlugin</name>
<message>
<source>Datetime</source>
<translation>Tarix vaxt</translation>
</message>
<message>
<source>12-hour time</source>
<translation>12 saat vaxt formatı</translation>
</message>
<message>
<source>24-hour time</source>
<translation>24 saat vaxt formatı</translation>
</message>
<message>
<source>Time settings</source>
<translation>Vaxt ayarları</translation>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation>Parlaqlıq</translation>
</message>
</context>
<context>
<name>DevCollaborationWidget</name>
<message>
<source>PC collaboration</source>
<translation>PC ilə əməkdaşlıq</translation>
</message>
</context>
<context>
<name>DialogManager</name>
<message>
@ -203,18 +173,52 @@
<translation>Bu əməliyyat bərpa edilə bilməz</translation>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation>Parlaqlıq</translation>
</message>
</context>
<context>
<name>DisplaySettingWidget</name>
<message>
<source>Multi-Screen Collaboration</source>
<translation>Çoxekranlı mübadilə</translation>
<source>Display Settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DockPluginController</name>
<message>
<source>The plugin %1 is not compatible with the system.</source>
<translation type="unfinished"/>
<translation>%1 qoşması sistem ilə uyğun deyil</translation>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation>ın</translation>
</message>
<message>
<source>Close All</source>
<translation>Hamısını bağlamaq</translation>
</message>
<message>
<source>Force Quit</source>
<translation>Məcburi çıxış</translation>
</message>
<message>
<source>Dock</source>
<translation>Dok panel</translation>
</message>
<message>
<source>Undock</source>
<translation>Ayırmaq</translation>
</message>
<message>
<source>All Windows</source>
<translation>Bütün Pəncərələr</translation>
</message>
</context>
<context>
@ -235,6 +239,13 @@
<translation>Başladıcı</translation>
</message>
</context>
<context>
<name>MediaPlayerModel</name>
<message>
<source>Unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>MenuWorker</name>
<message>
@ -301,6 +312,33 @@
<translation>Ayırmaq</translation>
</message>
</context>
<context>
<name>NotificationPlugin</name>
<message>
<source>Notification</source>
<translation type="unfinished"/>
</message>
<message>
<source>No messages</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notification settings</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notifications</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn off DND mode</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn on DND mode</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OnboardPlugin</name>
<message>
@ -344,7 +382,7 @@
</message>
<message>
<source>Battery</source>
<translation type="unfinished"/>
<translation>Batareya</translation>
</message>
</context>
<context>
@ -409,7 +447,7 @@
</message>
<message>
<source>Volume %1</source>
<translation>Səs %1</translation>
<translation>Səs səviyyəsi %1</translation>
</message>
</context>
<context>
@ -464,31 +502,4 @@
<translation>Dok təhlükəsiz rejimdədir, onun düzgün göstərilməsi üçün çıxın</translation>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation>ın</translation>
</message>
<message>
<source>Close All</source>
<translation>Hamısını bağlamaq</translation>
</message>
<message>
<source>Force Quit</source>
<translation>Məcburi çıxış</translation>
</message>
<message>
<source>Dock</source>
<translation>Dok panel</translation>
</message>
<message>
<source>Undock</source>
<translation>Ayırmaq</translation>
</message>
<message>
<source>All Windows</source>
<translation>Bütün Pəncərələr</translation>
</message>
</context>
</TS>

View File

@ -136,54 +136,24 @@
<translation>Добавяне на клавиатурна подредба</translation>
</message>
</context>
<context>
<name>DBusHandler</name>
<message>
<source>failed to dock </source>
<translation type="unfinished"/>
</message>
<message>
<source>Unrecognized application, unable to dock</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DateTimeDisplayer</name>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DatetimePlugin</name>
<message>
<source>Datetime</source>
<translation>Дата и час</translation>
</message>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation>Яркост</translation>
</message>
</context>
<context>
<name>DevCollaborationWidget</name>
<message>
<source>PC collaboration</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DialogManager</name>
<message>
@ -203,10 +173,17 @@
<translation>Това действие не може да бъде възстановено</translation>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplaySettingWidget</name>
<message>
<source>Multi-Screen Collaboration</source>
<source>Display Settings</source>
<translation type="unfinished"/>
</message>
</context>
@ -214,8 +191,35 @@
<name>DockPluginController</name>
<message>
<source>The plugin %1 is not compatible with the system.</source>
<translation>Приставката %1 не е съвместима със системата.</translation>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation>Отваряне</translation>
</message>
<message>
<source>Close All</source>
<translation type="unfinished"/>
</message>
<message>
<source>Force Quit</source>
<translation type="unfinished"/>
</message>
<message>
<source>Dock</source>
<translation>Док</translation>
</message>
<message>
<source>Undock</source>
<translation type="unfinished"/>
</message>
<message>
<source>All Windows</source>
<translation>Всички прозорци</translation>
</message>
</context>
<context>
<name>HomeMonitorPlugin</name>
@ -235,6 +239,13 @@
<translation>Стартер</translation>
</message>
</context>
<context>
<name>MediaPlayerModel</name>
<message>
<source>Unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>MenuWorker</name>
<message>
@ -301,6 +312,33 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>NotificationPlugin</name>
<message>
<source>Notification</source>
<translation type="unfinished"/>
</message>
<message>
<source>No messages</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notification settings</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notifications</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn off DND mode</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn on DND mode</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OnboardPlugin</name>
<message>

View File

@ -136,54 +136,24 @@
<translation> </translation>
</message>
</context>
<context>
<name>DBusHandler</name>
<message>
<source>failed to dock </source>
<translation type="unfinished"/>
</message>
<message>
<source>Unrecognized application, unable to dock</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DateTimeDisplayer</name>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DatetimePlugin</name>
<message>
<source>Datetime</source>
<translation>ি </translation>
</message>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation></translation>
</message>
</context>
<context>
<name>DevCollaborationWidget</name>
<message>
<source>PC collaboration</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DialogManager</name>
<message>
@ -203,10 +173,17 @@
<translation> ি </translation>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplaySettingWidget</name>
<message>
<source>Multi-Screen Collaboration</source>
<source>Display Settings</source>
<translation type="unfinished"/>
</message>
</context>
@ -214,6 +191,33 @@
<name>DockPluginController</name>
<message>
<source>The plugin %1 is not compatible with the system.</source>
<translation>%1 িি ি </translation>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation></translation>
</message>
<message>
<source>Close All</source>
<translation type="unfinished"/>
</message>
<message>
<source>Force Quit</source>
<translation type="unfinished"/>
</message>
<message>
<source>Dock</source>
<translation></translation>
</message>
<message>
<source>Undock</source>
<translation type="unfinished"/>
</message>
<message>
<source>All Windows</source>
<translation type="unfinished"/>
</message>
</context>
@ -235,6 +239,13 @@
<translation></translation>
</message>
</context>
<context>
<name>MediaPlayerModel</name>
<message>
<source>Unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>MenuWorker</name>
<message>
@ -301,6 +312,33 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>NotificationPlugin</name>
<message>
<source>Notification</source>
<translation type="unfinished"/>
</message>
<message>
<source>No messages</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notification settings</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notifications</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn off DND mode</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn on DND mode</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OnboardPlugin</name>
<message>

View File

@ -136,54 +136,24 @@
<translation></translation>
</message>
</context>
<context>
<name>DBusHandler</name>
<message>
<source>failed to dock </source>
<translation type="unfinished"/>
</message>
<message>
<source>Unrecognized application, unable to dock</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DateTimeDisplayer</name>
<message>
<source>12-hour time</source>
<translation>12</translation>
</message>
<message>
<source>24-hour time</source>
<translation>24 </translation>
</message>
<message>
<source>Time settings</source>
<translation></translation>
</message>
</context>
<context>
<name>DatetimePlugin</name>
<message>
<source>Datetime</source>
<translation></translation>
</message>
<message>
<source>12-hour time</source>
<translation>12</translation>
</message>
<message>
<source>24-hour time</source>
<translation>24 </translation>
</message>
<message>
<source>Time settings</source>
<translation></translation>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation></translation>
</message>
</context>
<context>
<name>DevCollaborationWidget</name>
<message>
<source>PC collaboration</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DialogManager</name>
<message>
@ -203,18 +173,52 @@
<translation></translation>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplaySettingWidget</name>
<message>
<source>Multi-Screen Collaboration</source>
<translation></translation>
<source>Display Settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DockPluginController</name>
<message>
<source>The plugin %1 is not compatible with the system.</source>
<translation type="unfinished"/>
<translation>%1</translation>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation></translation>
</message>
<message>
<source>Close All</source>
<translation></translation>
</message>
<message>
<source>Force Quit</source>
<translation></translation>
</message>
<message>
<source>Dock</source>
<translation></translation>
</message>
<message>
<source>Undock</source>
<translation></translation>
</message>
<message>
<source>All Windows</source>
<translation></translation>
</message>
</context>
<context>
@ -235,6 +239,13 @@
<translation></translation>
</message>
</context>
<context>
<name>MediaPlayerModel</name>
<message>
<source>Unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>MenuWorker</name>
<message>
@ -301,6 +312,33 @@
<translation></translation>
</message>
</context>
<context>
<name>NotificationPlugin</name>
<message>
<source>Notification</source>
<translation type="unfinished"/>
</message>
<message>
<source>No messages</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notification settings</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notifications</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn off DND mode</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn on DND mode</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OnboardPlugin</name>
<message>
@ -344,7 +382,7 @@
</message>
<message>
<source>Battery</source>
<translation type="unfinished"/>
<translation></translation>
</message>
</context>
<context>
@ -464,31 +502,4 @@
<translation> </translation>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation></translation>
</message>
<message>
<source>Close All</source>
<translation></translation>
</message>
<message>
<source>Force Quit</source>
<translation></translation>
</message>
<message>
<source>Dock</source>
<translation></translation>
</message>
<message>
<source>Undock</source>
<translation></translation>
</message>
<message>
<source>All Windows</source>
<translation></translation>
</message>
</context>
</TS>

View File

@ -136,54 +136,24 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DBusHandler</name>
<message>
<source>failed to dock </source>
<translation type="unfinished"/>
</message>
<message>
<source>Unrecognized application, unable to dock</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DateTimeDisplayer</name>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DatetimePlugin</name>
<message>
<source>Datetime</source>
<translation type="unfinished"/>
</message>
<message>
<source>12-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>24-hour time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Time settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DevCollaborationWidget</name>
<message>
<source>PC collaboration</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DialogManager</name>
<message>
@ -203,10 +173,51 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplayPlugin</name>
<message>
<source>Brightness</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DisplaySettingWidget</name>
<message>
<source>Multi-Screen Collaboration</source>
<source>Display Settings</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>DockPluginController</name>
<message>
<source>The plugin %1 is not compatible with the system.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>Entry</name>
<message>
<source>Open</source>
<translation>Digeriñ</translation>
</message>
<message>
<source>Close All</source>
<translation type="unfinished"/>
</message>
<message>
<source>Force Quit</source>
<translation type="unfinished"/>
</message>
<message>
<source>Dock</source>
<translation type="unfinished"/>
</message>
<message>
<source>Undock</source>
<translation type="unfinished"/>
</message>
<message>
<source>All Windows</source>
<translation type="unfinished"/>
</message>
</context>
@ -228,6 +239,13 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>MediaPlayerModel</name>
<message>
<source>Unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>MenuWorker</name>
<message>
@ -294,6 +312,33 @@
<translation type="unfinished"/>
</message>
</context>
<context>
<name>NotificationPlugin</name>
<message>
<source>Notification</source>
<translation type="unfinished"/>
</message>
<message>
<source>No messages</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notification settings</source>
<translation type="unfinished"/>
</message>
<message>
<source>Notifications</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn off DND mode</source>
<translation type="unfinished"/>
</message>
<message>
<source>Turn on DND mode</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OnboardPlugin</name>
<message>
@ -303,10 +348,6 @@
</context>
<context>
<name>PowerPlugin</name>
<message>
<source>Power</source>
<translation type="unfinished"/>
</message>
<message>
<source>Capacity %1, %2 min remaining</source>
<translation type="unfinished"/>
@ -339,6 +380,10 @@
<source>Capacity %1, fully charged</source>
<translation type="unfinished"/>
</message>
<message>
<source>Battery</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ShowDesktopPlugin</name>
@ -386,7 +431,7 @@
<translation type="unfinished"/>
</message>
<message>
<source>Plugged In</source>
<source>Power</source>
<translation type="unfinished"/>
</message>
</context>

Some files were not shown because too many files have changed in this diff Show More