~keepassx/keepassx/trunk

« back to all changes in this revision

Viewing changes to src/core/Metadata.h

  • Committer: Felix Geyer
  • Date: 2010-09-19 19:22:24 UTC
  • Revision ID: git-v1:567dd92d4c10e4c1d9c8ba6a3b3568e2d18951d2
Add built-in icons.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <QtCore/QDateTime>
24
24
#include <QtCore/QHash>
25
 
#include <QtGui/QImage>
 
25
#include <QtGui/QIcon>
26
26
 
27
27
class Database;
28
28
class Group;
48
48
    bool protectUrl() const;
49
49
    bool protectNotes() const;
50
50
    bool autoEnableVisualHiding() const;
51
 
    QHash<Uuid, QImage> customIcons() const;
 
51
    QIcon customIcon(const Uuid& uuid) const;
 
52
    QHash<Uuid, QIcon> customIcons() const;
52
53
    bool recycleBinEnabled() const;
53
54
    const Group* recycleBin() const;
54
55
    QDateTime recycleBinChanged() const;
72
73
    void setProtectUrl(bool value);
73
74
    void setProtectNotes(bool value);
74
75
    void setAutoEnableVisualHiding(bool value);
75
 
    void addCustomIcon(const Uuid& uuid, const QImage& image);
 
76
    void addCustomIcon(const Uuid& uuid, const QIcon& icon);
76
77
    void removeCustomIcon(const Uuid& uuid);
77
78
    void setRecycleBinEnabled(bool value);
78
79
    void setRecycleBin(Group* group);
101
102
    bool m_protectNotes;
102
103
    bool m_autoEnableVisualHiding;
103
104
 
104
 
    QHash<Uuid, QImage> m_customIcons;
 
105
    QHash<Uuid, QIcon> m_customIcons;
105
106
 
106
107
    bool m_recycleBinEnabled;
107
108
    Group* m_recycleBin;