1
#ifndef CONFIG_ACCOUNT_LIST_H
2
#define CONFIG_ACCOUNT_LIST_H
4
#include "../lib/AccountList.h"
5
#include "../AccountView.h"
7
///@class ConfigAccountList Account list model
8
class ConfigAccountList : public QObject {
13
ConfigAccountList(bool fill = true);
14
ConfigAccountList(QStringList &_accountIds);
17
const AccountView* getAccountAt ( int i ) const;
18
AccountView* getAccountAt ( int i ) ;
19
QVector<AccountView*>& getAccounts ( ) ;
20
AccountView* firstRegisteredAccount ( ) const;
21
QVector<AccountView*> registeredAccounts ( ) const;
22
QString getOrderedList ( ) const;
24
AccountView* getAccountByItem ( QListWidgetItem* item ) ;
25
QVector<AccountView*> getAccountByState ( QString & state ) ;
26
AccountView* getAccountById ( const QString & id ) const;
29
virtual AccountView* addAccount ( const QString & alias );
30
void removeAccount ( QListWidgetItem* item );
31
void removeAccount ( AccountView* account );
33
void updateAccounts ( );
34
void upAccount ( int index );
35
void downAccount ( int index );
38
AccountView* operator[] (int i);
41
QVector<AccountView*>* accounts;
44
void accountListUpdated();