Skip to content

Commit

Permalink
feat: enable cloud sync
Browse files Browse the repository at this point in the history
开启云同步功能

Log:
  • Loading branch information
myml committed Mar 7, 2024
1 parent 78a7c65 commit 63a7516
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions calendar-client/src/dbus/doanetworkdbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

#include <QDBusAbstractInterface>

#define NETWORK_DBUS_INTEERFACENAME "com.deepin.daemon.Network"
#define NETWORK_DBUS_NAME "com.deepin.daemon.Network"
#define NETWORK_DBUS_PATH "/com/deepin/daemon/Network"
#define NETWORK_DBUS_INTEERFACENAME "org.deepin.dde.Network1"
#define NETWORK_DBUS_NAME "org.deepin.dde.Network1"
#define NETWORK_DBUS_PATH "/org/deepin/dde/Network1"

class DOANetWorkDBus : public QDBusAbstractInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ DAccountManageModule::DAccountManageModule(QObject *parent)
&DAccountManageModule::slotSettingChange);
}
m_isSupportUid = m_syncFileManage->getSyncoperation()->hasAvailable();
if(Dtk::Core::DSysInfo::isCommunityEdition()){
m_isSupportUid = false;
}
//新文件路径
QString newDbPath = getDBPath();
QString newDB(newDbPath + "/" + "accountmanager.db");
Expand Down
4 changes: 0 additions & 4 deletions calendar-service/src/synchronization/syncfilemanage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ bool SyncFileManage::syncDataDelete(const QString &filepath)
DAccount::Ptr SyncFileManage::getuserInfo()
{
QVariantMap userInfoMap;
//如果为社区版本则返回空
if (Dtk::Core::DSysInfo::uosEditionType() == Dtk::Core::DSysInfo::UosCommunity) {
return nullptr;
}

if (!m_syncoperation->optUserData(userInfoMap)) {
qCInfo(ServiceLogger) << "can't get userinfo";
Expand Down
2 changes: 2 additions & 0 deletions calendar-service/src/synchronization/syncoperation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "syncoperation.h"
#include "commondef.h"
#include <QLoggingCategory>


Syncoperation::Syncoperation(QObject *parent)
Expand Down Expand Up @@ -77,6 +78,7 @@ SyncoptResult Syncoperation::optUpload(const QString &key)

SyncoptResult Syncoperation::optDownload(const QString &key, const QString &path)
{
qCDebug(ServiceLogger) << "download" << key << path;
SyncoptResult result;
QDBusPendingReply<QString> reply = m_syncInter->Download(key, path);
reply.waitForFinished();
Expand Down

0 comments on commit 63a7516

Please sign in to comment.