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

« back to all changes in this revision

Viewing changes to libs/database/albuminfo.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:
44
44
 
45
45
namespace AlbumRoot
46
46
{
47
 
    enum Type
48
 
    {
49
 
        // Keep values constant
50
 
        UndefinedType   = 0,
51
 
        VolumeHardWired = 1,
52
 
        VolumeRemovable = 2,
53
 
        Network         = 3
54
 
    };
 
47
enum Type
 
48
{
 
49
    // Keep values constant
 
50
    UndefinedType   = 0,
 
51
    VolumeHardWired = 1,
 
52
    VolumeRemovable = 2,
 
53
    Network         = 3
 
54
};
55
55
}
56
56
 
57
57
/**
84
84
 
85
85
    typedef QList<AlbumInfo> List;
86
86
 
87
 
    bool isNull() const { return id == 0; }
 
87
    bool isNull() const
 
88
    {
 
89
        return id == 0;
 
90
    }
88
91
 
89
92
    int     id;
90
93
    int     albumRootId;
118
121
 
119
122
    typedef QList<TagInfo> List;
120
123
 
121
 
    bool isNull() const { return id == 0; }
 
124
    bool isNull() const
 
125
    {
 
126
        return id == 0;
 
127
    }
122
128
 
123
129
    int     id;
124
130
    int     pid;
135
141
 
136
142
namespace DatabaseSearch
137
143
{
138
 
    enum Type
139
 
    {
140
 
        UndefinedType,
141
 
        KeywordSearch,
142
 
        AdvancedSearch,
143
 
        LegacyUrlSearch,
144
 
        TimeLineSearch,
145
 
        HaarSearch,
146
 
        MapSearch,
147
 
        DuplicatesSearch
148
 
    };
 
144
enum Type
 
145
{
 
146
    UndefinedType,
 
147
    KeywordSearch,
 
148
    AdvancedSearch,
 
149
    LegacyUrlSearch,
 
150
    TimeLineSearch,
 
151
    HaarSearch,
 
152
    MapSearch,
 
153
    DuplicatesSearch
 
154
};
149
155
 
150
 
    enum HaarSearchType
151
 
    {
152
 
        HaarImageSearch,
153
 
        HaarSketchSearch
154
 
    };
 
156
enum HaarSearchType
 
157
{
 
158
    HaarImageSearch,
 
159
    HaarSketchSearch
 
160
};
155
161
}
156
162
 
157
163
/**
167
173
 
168
174
    typedef QList<SearchInfo> List;
169
175
 
170
 
    bool isNull() const { return id == 0; }
 
176
    bool isNull() const
 
177
    {
 
178
        return id == 0;
 
179
    }
171
180
 
172
181
    int                  id;
173
182
    QString              name;
189
198
 
190
199
    AlbumShortInfo() : id(0), albumRootId(0) {};
191
200
 
192
 
    bool isNull() const { return id == 0; }
 
201
    bool isNull() const
 
202
    {
 
203
        return id == 0;
 
204
    }
193
205
 
194
206
    int     id;
195
207
    QString relativePath;
202
214
 
203
215
    TagShortInfo() : id(0), pid(0) {};
204
216
 
205
 
    bool isNull() const { return id == 0; }
 
217
    bool isNull() const
 
218
    {
 
219
        return id == 0;
 
220
    }
206
221
 
207
222
    int     id;
208
223
    int     pid;
211
226
 
212
227
namespace DatabaseItem
213
228
{
214
 
    enum Status
215
 
    {
216
 
        // Keep values constant
217
 
        UndefinedStatus = 0,
218
 
        Visible         = 1,
219
 
        Hidden          = 2,
220
 
        Removed         = 3
221
 
    };
 
229
enum Status
 
230
{
 
231
    // Keep values constant
 
232
    UndefinedStatus = 0,
 
233
    Visible         = 1,
 
234
    Hidden          = 2,
 
235
    Removed         = 3
 
236
};
222
237
 
223
 
    enum Category
224
 
    {
225
 
        // Keep values constant
226
 
        UndefinedCategory = 0,
227
 
        Image             = 1,
228
 
        Video             = 2,
229
 
        Audio             = 3,
230
 
        Other             = 4
231
 
    };
 
238
enum Category
 
239
{
 
240
    // Keep values constant
 
241
    UndefinedCategory = 0,
 
242
    Image             = 1,
 
243
    Video             = 2,
 
244
    Audio             = 3,
 
245
    Other             = 4
 
246
};
232
247
}
233
248
 
234
249
class ItemShortInfo
237
252
 
238
253
    ItemShortInfo() : id(0), albumID(0), albumRootID(0) {};
239
254
 
240
 
    bool isNull() const { return id == 0; }
 
255
    bool isNull() const
 
256
    {
 
257
        return id == 0;
 
258
    }
241
259
 
242
260
    qlonglong id;
243
261
    QString   itemName;
255
273
          category(DatabaseItem::UndefinedCategory), fileSize(0)
256
274
    {};
257
275
 
258
 
    bool isNull() const { return id == 0; }
 
276
    bool isNull() const
 
277
    {
 
278
        return id == 0;
 
279
    }
259
280
 
260
281
    qlonglong              id;
261
282
    int                    albumID;
269
290
 
270
291
namespace DatabaseComment
271
292
{
272
 
    enum Type
273
 
    {
274
 
        // Keep values constant
275
 
        /// UndefinedType: Shall never appear in the database
276
 
        UndefinedType   = 0,
277
 
        /**
278
 
         *  Comment: The default - a normal comment
279
 
         *  This is what the user in digikam edits as the comment.
280
 
         *  It is mapped to and from the JFIF comment,
281
 
         *  the EXIF user comment, the IPTC Caption,
282
 
         *  Dublin Core and Photoshop Description.
283
 
         */
284
 
        Comment         = 1,
285
 
        /// Headline: as with IPTC or Photoshop
286
 
        Headline        = 2,
287
 
        /// Title: as with Dublin Core Title, Photoshop Title, IPTC Object Name
288
 
        Title           = 3
289
 
        // Feel free to add here any more types that you need!
290
 
    };
 
293
enum Type
 
294
{
 
295
    // Keep values constant
 
296
    /// UndefinedType: Shall never appear in the database
 
297
    UndefinedType   = 0,
 
298
    /**
 
299
     *  Comment: The default - a normal comment
 
300
     *  This is what the user in digikam edits as the comment.
 
301
     *  It is mapped to and from the JFIF comment,
 
302
     *  the EXIF user comment, the IPTC Caption,
 
303
     *  Dublin Core and Photoshop Description.
 
304
     */
 
305
    Comment         = 1,
 
306
    /// Headline: as with IPTC or Photoshop
 
307
    Headline        = 2,
 
308
    /// Title: as with Dublin Core Title, Photoshop Title, IPTC Object Name
 
309
    Title           = 3
 
310
    // Feel free to add here any more types that you need!
 
311
};
291
312
}
292
313
 
293
314
class CommentInfo
296
317
 
297
318
    CommentInfo() : id(-1), imageId(-1), type(DatabaseComment::UndefinedType) {};
298
319
 
299
 
    bool isNull() const { return id == -1; }
 
320
    bool isNull() const
 
321
    {
 
322
        return id == -1;
 
323
    }
300
324
 
301
325
    int                   id;
302
326
    qlonglong             imageId;
313
337
 
314
338
    CopyrightInfo() : id(-1) {};
315
339
 
316
 
    bool isNull() const { return id == -1; }
 
340
    bool isNull() const
 
341
    {
 
342
        return id == -1;
 
343
    }
317
344
 
318
345
    qlonglong id;
319
346
    QString   property;