60
|
1 |
/*
|
|
2 |
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Definitions for media attributes
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef __T_GLXFILTERGENERALDEFS_H__
|
|
22 |
#define __T_GLXFILTERGENERALDEFS_H__
|
|
23 |
|
|
24 |
#include <e32base.h>
|
|
25 |
#include <mpxattribute.h>
|
|
26 |
|
|
27 |
/**
|
|
28 |
* Content ID identifying filter messages
|
|
29 |
*/
|
|
30 |
const TInt KGlxFilterIdGeneral = 0x2000A777;
|
|
31 |
|
|
32 |
/**
|
|
33 |
* Attributes supported for KGlxFilterIdGeneral
|
|
34 |
*/
|
|
35 |
enum
|
|
36 |
{
|
|
37 |
/**
|
|
38 |
* Filter
|
|
39 |
* specifying sort order
|
|
40 |
*/
|
|
41 |
|
|
42 |
EGlxFilterSortType = 0x01,
|
|
43 |
|
|
44 |
EGlxFilterSortDirection = 0x02,
|
|
45 |
|
|
46 |
EGlxFilterIncludeCameraAlbum = 0x04,
|
|
47 |
|
|
48 |
EGlxFilterMinItemCount = 0x08,
|
|
49 |
|
|
50 |
EGlxFilterContainsItem = 0x10,
|
|
51 |
|
|
52 |
EGlxFilterLastCaptureDate = 0x20,
|
|
53 |
|
|
54 |
EGlxFilterExcludeAnimation = 0x40,
|
|
55 |
|
|
56 |
EGlxFilterThumbnailLoadability = 0x80,
|
|
57 |
|
|
58 |
EGlxFilterMPXCollectionPath = 0x100,
|
|
59 |
|
|
60 |
EGlxFilterItemType = 0x200,
|
|
61 |
|
|
62 |
EGlxFilterUri = 0x400,
|
|
63 |
|
|
64 |
EGlxFilterSortOrderPromoteSystemItems = 0x0800,
|
|
65 |
|
|
66 |
EGlxFilterOrigin = 0x1000,
|
|
67 |
|
|
68 |
EGlxFilterNoDRM = 0x2000
|
|
69 |
|
|
70 |
};
|
|
71 |
|
|
72 |
/**
|
|
73 |
* Attributes supported for KGlxFilterIdGeneral
|
|
74 |
*/
|
|
75 |
const TMPXAttributeData KGlxFilterGeneralSortType = { KGlxFilterIdGeneral, EGlxFilterSortType }; // TGlxFilterSortOrder
|
|
76 |
const TMPXAttributeData KGlxFilterGeneralSortDirection = { KGlxFilterIdGeneral, EGlxFilterSortDirection }; // TGlxFilterSortDirection
|
|
77 |
const TMPXAttributeData KGlxFilterGeneralIncludeCameraAlbum = { KGlxFilterIdGeneral, EGlxFilterIncludeCameraAlbum }; // TBool
|
|
78 |
const TMPXAttributeData KGlxFilterGeneralMinCount = { KGlxFilterIdGeneral, EGlxFilterMinItemCount }; // TInt
|
|
79 |
const TMPXAttributeData KGlxFilterGeneralItemId = { KGlxFilterIdGeneral, EGlxFilterContainsItem }; // TMPXItemId
|
|
80 |
const TMPXAttributeData KGlxFilterGeneralExcludeAnimation = { KGlxFilterIdGeneral, EGlxFilterExcludeAnimation }; // TBool
|
|
81 |
const TMPXAttributeData KGlxFilterGeneralLastCaptureDate = { KGlxFilterIdGeneral, EGlxFilterLastCaptureDate }; // TBool
|
|
82 |
const TMPXAttributeData KGlxFilterGeneralThumbnailLoadability = { KGlxFilterIdGeneral, EGlxFilterThumbnailLoadability }; // TSize
|
|
83 |
const TMPXAttributeData KGlxFilterGeneralMPXCollectionPath = { KGlxFilterIdGeneral, EGlxFilterMPXCollectionPath }; // CMPXCollectionPath
|
|
84 |
const TMPXAttributeData KGlxFilterGeneralItemType = { KGlxFilterIdGeneral, EGlxFilterItemType }; // TGlxFilterItemType
|
|
85 |
const TMPXAttributeData KGlxFilterGeneralUri = { KGlxFilterIdGeneral, EGlxFilterUri }; // Text
|
|
86 |
const TMPXAttributeData KGlxFilterGeneralSortOrderPromoteSystemItems = { KGlxFilterIdGeneral, EGlxFilterSortOrderPromoteSystemItems }; // TBool
|
|
87 |
const TMPXAttributeData KGlxFilterGeneralOrigin = { KGlxFilterIdGeneral, EGlxFilterOrigin }; /// TGlxFilterOrigin
|
|
88 |
const TMPXAttributeData KGlxFilterGeneralNoDRM = { KGlxFilterIdGeneral, EGlxFilterNoDRM }; /// TBool
|
|
89 |
const TMPXAttributeData KGlxFilterGeneralNavigationalStateOnly = { KGlxFilterIdGeneral, 0x4000 }; /// TBool
|
|
90 |
const TMPXAttributeData KGlxFilterGeneralMaxCount = { KGlxFilterIdGeneral, 0x8000 }; // TInt
|
|
91 |
|
|
92 |
enum TGlxFilterSortOrder
|
|
93 |
{
|
|
94 |
EGlxFilterSortOrderNotUsed,
|
|
95 |
EGlxFilterSortOrderAlphabetical,
|
|
96 |
EGlxFilterSortOrderItemCount,
|
|
97 |
EGlxFilterSortOrderCaptureDate,
|
|
98 |
EGlxFilterSortOrderModifiedDate
|
|
99 |
};
|
|
100 |
|
|
101 |
enum TGlxFilterSortDirection
|
|
102 |
{
|
|
103 |
EGlxFilterSortDirectionNotUsed,
|
|
104 |
EGlxFilterSortDirectionReverse,
|
|
105 |
EGlxFilterSortDirectionAscending,
|
|
106 |
EGlxFilterSortDirectionDescending,
|
|
107 |
EGlxFilterSortDirectionOverrideToDescendingIfDate
|
|
108 |
};
|
|
109 |
|
|
110 |
enum TGlxFilterItemType
|
|
111 |
{
|
|
112 |
EGlxFilterItemAll,
|
|
113 |
EGlxFilterMediaTypeSuppliedInFilter,
|
|
114 |
EGlxFilterImage,
|
|
115 |
EGlxFilterVideo,
|
|
116 |
EGlxFilterVideoAndImages,
|
|
117 |
EGlxFilterAlbum,
|
|
118 |
EGlxFilterTag,
|
|
119 |
EGlxFilterMonth
|
|
120 |
};
|
|
121 |
|
|
122 |
enum TGlxFilterOrigin
|
|
123 |
{
|
|
124 |
EGlxFilterOriginNotUsed=0,
|
|
125 |
EGlxFilterOriginCamera,
|
|
126 |
EGlxFilterOriginDownload,
|
|
127 |
EGlxFilterOriginAll
|
|
128 |
};
|
|
129 |
|
|
130 |
#endif // __T_GLXFILTERGENERALDEFS_H__
|