-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Control Center-General Module Design and Transformation
Log: Control Center-General Module Requirements Development Task: https://pms.uniontech.com/task-view-364169.html
- Loading branch information
swq
committed
Oct 11, 2024
1 parent
b9854c4
commit e7727f1
Showing
23 changed files
with
1,927 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
//SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. | ||
// | ||
//SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#include "commoninfointeraction.h" | ||
#include "dccfactory.h" | ||
|
||
#include <QtQml/qqml.h> | ||
|
||
CommonInfoInteraction::CommonInfoInteraction(QObject *parent) | ||
: QObject{ parent } | ||
, m_work(NULL) | ||
, m_mode(NULL) | ||
{ | ||
qmlRegisterType<CommonInfoWork>("org.deepin.dcc.systemInfo", 1, 0, "CommonInfoWork"); | ||
qmlRegisterType<CommonInfoModel>("org.deepin.dcc.systemInfo", 1, 0, "CommonInfoModel"); | ||
|
||
m_mode = new CommonInfoModel(this); | ||
m_work = new CommonInfoWork(m_mode, this); | ||
|
||
m_work->active(); | ||
} | ||
|
||
CommonInfoWork *CommonInfoInteraction::work() const | ||
{ | ||
return m_work; | ||
} | ||
|
||
void CommonInfoInteraction::setWork(CommonInfoWork *newWork) | ||
{ | ||
m_work = newWork; | ||
} | ||
|
||
CommonInfoModel *CommonInfoInteraction::mode() const | ||
{ | ||
return m_mode; | ||
} | ||
|
||
void CommonInfoInteraction::setMode(CommonInfoModel *newMode) | ||
{ | ||
m_mode = newMode; | ||
} | ||
|
||
DCC_FACTORY_CLASS(CommonInfoInteraction) | ||
|
||
|
||
#include "commoninfointeraction.moc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. | ||
// | ||
//SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#ifndef COMMONINFOINTERACTION_H | ||
#define COMMONINFOINTERACTION_H | ||
|
||
#include "commoninfomodel.h" | ||
#include "commoninfowork.h" | ||
|
||
#include <QObject> | ||
|
||
class CommonInfoInteraction : public QObject | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit CommonInfoInteraction(QObject *parent = nullptr); | ||
|
||
Q_INVOKABLE CommonInfoWork *work() const; | ||
void setWork(CommonInfoWork *newWork); | ||
|
||
Q_INVOKABLE CommonInfoModel *mode() const; | ||
void setMode(CommonInfoModel *newMode); | ||
|
||
signals: | ||
|
||
|
||
private: | ||
CommonInfoWork* m_work; | ||
CommonInfoModel* m_mode; | ||
}; | ||
|
||
#endif // COMMONINFOINTERACTION_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.