forked from blue/squawk
Roster model, account model, connection commena, connection report
This commit is contained in:
parent
6823b41f24
commit
3d947a0748
12 changed files with 551 additions and 15 deletions
|
@ -7,6 +7,9 @@
|
|||
#include <deque>
|
||||
|
||||
#include "accounts.h"
|
||||
#include "models/roster.h"
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
namespace Ui {
|
||||
class Squawk;
|
||||
|
@ -22,9 +25,12 @@ public:
|
|||
|
||||
signals:
|
||||
void newAccountRequest(const QMap<QString, QVariant>&);
|
||||
void connectAccount(const QString&);
|
||||
void disconnectAccount(const QString&);
|
||||
|
||||
public slots:
|
||||
void newAccount(const QMap<QString, QVariant>& account);
|
||||
void accountConnectionStateChanged(const QString& account, int state);
|
||||
|
||||
private:
|
||||
typedef std::deque<QMap<QString, QVariant>> AC;
|
||||
|
@ -32,6 +38,7 @@ private:
|
|||
|
||||
Accounts* accounts;
|
||||
AC accountsCache;
|
||||
Models::Roster rosterModel;
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent * event) override;
|
||||
|
@ -39,6 +46,8 @@ protected:
|
|||
private slots:
|
||||
void onAccounts();
|
||||
void onAccountsClosed(QObject* parent = 0);
|
||||
void onComboboxActivated(int index);
|
||||
|
||||
};
|
||||
|
||||
#endif // SQUAWK_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue