~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to kde/src/conf/ConfigAccountList.h

  • Committer: Package Import Robot
  • Author(s): Francois Marier
  • Date: 2012-02-18 21:47:09 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120218214709-6362d71gqdsdkrj5
Tags: 1.0.2-1
* New upstream release
  - remove logging patch (applied upstream)
  - update s390 patch since it was partially applied upstream
* Include the Evolution plugin as a separate binary package

* Fix compilation issues on SH4 (closes: #658987)
* Merge Ubuntu's binutils-gold linking fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CONFIG_ACCOUNT_LIST_H
 
2
#define CONFIG_ACCOUNT_LIST_H
 
3
 
 
4
#include "../lib/AccountList.h"
 
5
#include "../AccountView.h"
 
6
 
 
7
///@class ConfigAccountList Account list model
 
8
class ConfigAccountList : public QObject {
 
9
   Q_OBJECT
 
10
   public:
 
11
 
 
12
      ///Constructor
 
13
      ConfigAccountList(bool fill = true);
 
14
      ConfigAccountList(QStringList &_accountIds);
 
15
 
 
16
      ///Getters
 
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;
 
23
      int                     size                   (                       ) const;
 
24
      AccountView*            getAccountByItem       ( QListWidgetItem* item )      ;
 
25
      QVector<AccountView*>   getAccountByState      ( QString & state       )      ;
 
26
      AccountView*            getAccountById         ( const QString & id    ) const;
 
27
 
 
28
      ///Mutators
 
29
      virtual AccountView* addAccount     ( const QString & alias );
 
30
      void                 removeAccount  ( QListWidgetItem* item );
 
31
      void                 removeAccount  ( AccountView* account  );
 
32
      void                 update         (                       );
 
33
      void                 updateAccounts (                       );
 
34
      void                 upAccount      ( int index             );
 
35
      void                 downAccount    ( int index             );
 
36
 
 
37
      ///Operators
 
38
      AccountView* operator[] (int i);
 
39
 
 
40
   private:
 
41
      QVector<AccountView*>*  accounts;
 
42
 
 
43
   signals:
 
44
      void accountListUpdated();
 
45
};
 
46
 
 
47
#endif