~ubuntu-branches/ubuntu/vivid/psi/vivid

« back to all changes in this revision

Viewing changes to src/psiiconset.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
class PsiEvent;
31
31
class UserListItem;
32
 
struct Options;
33
32
namespace XMPP {
34
33
        class Status;
35
34
        class Jid;
37
36
 
38
37
class PsiIconset : public QObject
39
38
{
 
39
        Q_OBJECT
40
40
public:
41
41
        static PsiIconset* instance();
42
42
 
43
43
        bool loadSystem();
 
44
        void reloadRoster();
44
45
        bool loadAll();
45
46
 
46
 
        bool optionsChanged(const Options *old); // returns 'true' if Psi needs to be restarted
47
 
 
48
47
        Q3Dict<Iconset> roster;
49
48
        Q3PtrList<Iconset> emoticons;
50
49
        const Iconset &system() const;
78
77
        PsiIcon *statusPtr(UserListItem *);
79
78
        PsiIcon status(UserListItem *);
80
79
 
 
80
signals:
 
81
        void emoticonsChanged();
 
82
 
 
83
private slots:
 
84
        void optionChanged(const QString& option);
 
85
 
81
86
private:
82
87
        PsiIconset();
83
88
        ~PsiIconset();
86
91
        Private *d;
87
92
 
88
93
        static PsiIconset* instance_;
 
94
 
 
95
        bool loadRoster();
 
96
        void loadEmoticons();
89
97
};
90
98
 
91
99
#endif