~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to digikam/albumthumbnailloader.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-21 23:19:11 UTC
  • mfrom: (1.2.33 upstream) (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20101221231911-z9jip7s5aht1jqn9
Tags: 2:1.7.0-1ubuntu1
* Merge from Debian Experimental. Remaining Ubuntu changes:
  - Export .pot name and copy to plugins in debian/rules
  - Version build-depends on kipi-plugins-dev to ensure build is against the
    same version on all archs
* Drop debian/patches/kubuntu_01_linker.diff, incoporated upstream
* Remove patches directory and unused patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
public:
52
52
 
53
 
    static AlbumThumbnailLoader *instance();
 
53
    static AlbumThumbnailLoader* instance();
54
54
 
55
55
    void cleanUp();
56
56
 
88
88
     * no action will be taken, and false is returned.
89
89
     *
90
90
    */
91
 
    bool getAlbumThumbnail(PAlbum *album);
 
91
    bool getAlbumThumbnail(PAlbum* album);
92
92
 
93
93
    /**
94
94
      * Request thumbnail for given album,
99
99
      * by the signals, and a default icon is returned here.
100
100
      * If no icon is associated, the default icon is returned.
101
101
    */
102
 
    QPixmap getAlbumThumbnailDirectly(PAlbum *album);
 
102
    QPixmap getAlbumThumbnailDirectly(PAlbum* album);
103
103
 
104
104
    /**
105
105
      * Behaves similar to the above method.
118
118
      * obtained below, or used as is when SmallerSize is requested anyway.
119
119
      * @return Returns true if icon is loaded asynchronously.
120
120
      */
121
 
    bool getTagThumbnail(TAlbum *album, QPixmap& icon);
 
121
    bool getTagThumbnail(TAlbum* album, QPixmap& icon);
122
122
 
123
123
    /**
124
124
      * Loads tag thumbnail,
129
129
      * by the signals (unblended), and a default icon is returned here.
130
130
      * If no icon is associated, the default icon is returned.
131
131
      */
132
 
    QPixmap getTagThumbnailDirectly(TAlbum *album, bool blendIcons = true);
 
132
    QPixmap getTagThumbnailDirectly(TAlbum* album, bool blendIcons = true);
133
133
 
134
134
    /**
135
135
     * Return standard tag and album icons.
138
138
     */
139
139
    QPixmap getStandardTagIcon(RelativeSize size = NormalSize);
140
140
    QPixmap getStandardTagRootIcon(RelativeSize size = NormalSize);
141
 
    QPixmap getStandardTagIcon(TAlbum *album, RelativeSize size = NormalSize);
 
141
    QPixmap getStandardTagIcon(TAlbum* album, RelativeSize size = NormalSize);
142
142
    QPixmap getNewTagIcon(RelativeSize size = NormalSize);
143
143
 
144
144
    QPixmap getStandardAlbumIcon(RelativeSize size = NormalSize);
145
145
    QPixmap getStandardAlbumRootIcon(RelativeSize size = NormalSize);
146
 
    QPixmap getStandardAlbumIcon(PAlbum *album, RelativeSize size = NormalSize);
 
146
    QPixmap getStandardAlbumIcon(PAlbum* album, RelativeSize size = NormalSize);
147
147
 
148
148
    /**
149
149
     * Blend tagIcon centered on dstIcon, where dstIcon is a standard
160
160
     * This class is a singleton, so any object connected to this
161
161
     * signal might not actually have requested a thumbnail for given url
162
162
     */
163
 
    void signalThumbnail(Album *album, const QPixmap&);
 
163
    void signalThumbnail(Album* album, const QPixmap&);
164
164
 
165
165
    /** This signal is emitted if thumbnail generation for given album failed.
166
166
     *  Same considerations as above.
167
167
     */
168
 
    void signalFailed(Album *album);
 
168
    void signalFailed(Album* album);
169
169
 
170
170
    /**
171
171
     * Indicates that all album and tag thumbnails need to be reloaded.
188
188
    ~AlbumThumbnailLoader();
189
189
    AlbumThumbnailLoaderPrivate* const d;
190
190
 
191
 
    void    addUrl(Album *album, const KUrl& url);
 
191
    void    addUrl(Album* album, const KUrl& url);
192
192
    QPixmap loadIcon(const QString& name, int size = 0);
193
193
    QPixmap createTagThumbnail(const QPixmap& albumThumbnail);
194
194
    int     computeIconSize(RelativeSize size);