-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #838: Port to libQuotient's keychain and account handling
- Loading branch information
Showing
15 changed files
with
94 additions
and
513 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,22 +1,25 @@ | ||
#pragma once | ||
|
||
#include "accountregistry.h" | ||
#include <accountregistry.h> | ||
|
||
#include <QtWidgets/QComboBox> | ||
|
||
namespace Quotient | ||
{ | ||
class Connection; | ||
} | ||
|
||
class AccountSelector : public QComboBox | ||
{ | ||
Q_OBJECT | ||
public: | ||
using Account = AccountRegistry::Account; | ||
|
||
AccountSelector(const AccountRegistry* registry, QWidget* parent = nullptr); | ||
AccountSelector(QWidget* parent = nullptr); | ||
|
||
void setAccount(Account* newAccount); | ||
Account* currentAccount() const; | ||
int indexOfAccount(Account* a) const; | ||
void setAccount(Quotient::Connection* newAccount); | ||
Quotient::Connection* currentAccount() const; | ||
int indexOfAccount(Quotient::Connection* a) const; | ||
|
||
signals: | ||
void currentAccountChanged(Account* newAccount); | ||
void currentAccountChanged(Quotient::Connection* newAccount); | ||
}; | ||
|
Oops, something went wrong.