Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Weilbach <felix.weilbach@nextcloud.com>2021-09-09 12:18:22 +0300
committerFelix Weilbach <felix.weilbach@nextcloud.com>2021-09-09 12:18:22 +0300
commit8a8d488454405356b5d11f63bebff2d69be43b02 (patch)
treeafa6c5a496561e6778227ece22a6c871622af926 /src/gui/accountstate.cpp
parentf34d66302942ede371bf7bc5d5e213b6c41ea5d8 (diff)
Add dialog to set user status
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
Diffstat (limited to 'src/gui/accountstate.cpp')
-rw-r--r--src/gui/accountstate.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp
index bb2ab5273..7521dac79 100644
--- a/src/gui/accountstate.cpp
+++ b/src/gui/accountstate.cpp
@@ -44,7 +44,6 @@ AccountState::AccountState(AccountPtr account)
, _waitingForNewCredentials(false)
, _maintenanceToConnectedDelay(60000 + (qrand() % (4 * 60000))) // 1-5min delay
, _remoteWipe(new RemoteWipe(_account))
- , _userStatus(new UserStatus(this))
, _isDesktopNotificationsAllowed(true)
{
qRegisterMetaType<AccountState *>("AccountState*");
@@ -127,26 +126,6 @@ void AccountState::setState(State state)
emit stateChanged(_state);
}
-UserStatus::Status AccountState::status() const
-{
- return _userStatus->status();
-}
-
-QString AccountState::statusMessage() const
-{
- return _userStatus->message();
-}
-
-QUrl AccountState::statusIcon() const
-{
- return _userStatus->icon();
-}
-
-QString AccountState::statusEmoji() const
-{
- return _userStatus->emoji();
-}
-
QString AccountState::stateString(State state)
{
switch (state) {
@@ -462,12 +441,6 @@ void AccountState::fetchNavigationApps(){
job->getNavigationApps();
}
-void AccountState::fetchUserStatus()
-{
- connect(_userStatus, &UserStatus::fetchUserStatusFinished, this, &AccountState::statusChanged);
- _userStatus->fetchUserStatus(_account);
-}
-
void AccountState::slotEtagResponseHeaderReceived(const QByteArray &value, int statusCode){
if(statusCode == 200){
qCDebug(lcAccountState) << "New navigation apps ETag Response Header received " << value;