photosgallery/contentharvesterplugin/inc/glxmapconstants.h
changeset 0 4e91876724a2
child 2 7d9067c6fcb1
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008 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:    Global definitions
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef GLXMAPCONSTANTS_H
       
    22 #define GLXMAPCONSTANTS_H
       
    23 
       
    24 /** Data types for CP content */
       
    25 enum TDataTypes
       
    26     {
       
    27     ECPHardcodedText = 1, // 0001
       
    28     ECPResourceText = 2, // 0010
       
    29     ECPFilepathImage = 4, // 0100 
       
    30     ECPResourceIcon = 8 // 1000
       
    31     };
       
    32 
       
    33 enum TCPGetListOrder
       
    34     {
       
    35     ECPRecent = 1, // 0001
       
    36     ECPPublisher = 2, // 0010
       
    37     ECPContent = 4, // 0100 
       
    38     ECPContentId = 8 // 1000 
       
    39     };
       
    40 
       
    41 enum TFlag
       
    42     {
       
    43     EActivate = 1, // 0001
       
    44     };
       
    45     
       
    46 const TInt KNameArgumentsLimit = 5;
       
    47 
       
    48 //This variables are used by the Plugins
       
    49 //Time Interval to show the thumbnail when the collection is in focus
       
    50 const TInt KTimerInterval( 2000000 );
       
    51 //The Thumbnails to shown/fetched when the collection is in focus
       
    52 const TInt KPreviewThumbnailFetchCount(15);
       
    53 //The Thumbnails to shown/fetched when the collection is not in focus
       
    54 const TInt KSinglePreviewThumbnail(1);
       
    55 
       
    56 //The constants to identify the plugin/collection
       
    57 const TInt KMaxInt = 0x7fffffff;
       
    58 
       
    59 // Bug Fix @ ESLM-7VWF28 :: Change to Display the " ALL " collection folder as the very first collection folder in the Photos Matrix Menu View
       
    60 const TInt KItemIndexAll = 0;
       
    61 const TInt KItemIndexMonths = 1;
       
    62 const TInt KItemIndexAlbums = 2;
       
    63 const TInt KItemIndexTags = 3;
       
    64 const TInt KListDataWindowSize = 10;
       
    65 //Total collection count
       
    66 const TInt KTotalCollection=4;
       
    67 
       
    68 //Written for photos specific usage - START
       
    69 
       
    70 _LIT8(KMonthsSubtitle, "MonthsSubtitle");
       
    71 _LIT8(KAllSubtitle, "AllcsSubtitle");
       
    72 _LIT8(KTagsSubtitle, "TagsSubtitle");
       
    73 _LIT8(KAlbumsSubtitle, "AlbumsSubtitle");
       
    74 
       
    75 _LIT(KPublisherTextMonths,"photossuiteMonths");
       
    76 _LIT(KPublisherTextAlbums,"photossuiteAlbums");
       
    77 _LIT(KPublisherTextTags,"photossuiteTags");
       
    78 _LIT(KPublisherTextAll,"photossuiteAllcs");
       
    79 
       
    80 _LIT(KContTypeTextMonths,"months1");
       
    81 _LIT(KContTypeTextAlbums,"albums1");
       
    82 _LIT(KContTypeTextTags,"tags1");
       
    83 _LIT(KContTypeTextAll,"allcs1");
       
    84 _LIT(KContId1,"category1");
       
    85 
       
    86 _LIT8(KFirstIcon, "first_icon");
       
    87 
       
    88 _LIT(KSuitePublisher,"photossuite");
       
    89 _LIT(KContentActivationMonths,"months");
       
    90 _LIT(KContentActivationAlbums,"albums");
       
    91 _LIT(KContentActivationTags,"tags");
       
    92 _LIT(KContentActivationAll,"allcs");
       
    93    
       
    94 _LIT(KContentDefault,"default");
       
    95 
       
    96 //Written for photos specific usage - END
       
    97 
       
    98 
       
    99 _LIT( KService, "CP Service" );
       
   100 
       
   101 _LIT8( KCPInterface, "IDataSource" );
       
   102 _LIT8( KCPContentInterface, "IContentPublishing" );
       
   103 _LIT8( KCPService, "Service.ContentPublishing" );
       
   104 _LIT8( KCommand, "cmd" );
       
   105 
       
   106 //Supported Commands
       
   107 _LIT8( KGetList, "GetList" );
       
   108 _LIT8( KAdd, "Add" );
       
   109 _LIT8( KDelete, "Delete" );
       
   110 _LIT8( KRequestNotification, "RequestNotification" );
       
   111 _LIT8( KExecuteAction, "ExecuteAction" );
       
   112 _LIT8( KCmdCancel, "Cancel" );
       
   113 _LIT8( KActivate, "Activate" );
       
   114 _LIT8( KActivateTrigger, "activate" );
       
   115 _LIT8( KDeactivateTrigger, "deactivate" );
       
   116 
       
   117 // Input arguments
       
   118 _LIT8( KType, "type" );
       
   119 _LIT8( KAction, "action" );
       
   120 _LIT8( KItem, "item" );
       
   121 _LIT8( KFilter, "filter" );
       
   122 _LIT8( KData, "data" );
       
   123 _LIT8( KSortOrder, "sort_order" );
       
   124 _LIT8( KItemId, "item_id" );
       
   125 _LIT8( KByPublisher, "by_publisher" );
       
   126 _LIT8( KByEntryIds, "by_entryids" );
       
   127 _LIT8( KPublisherId, "publisher" );
       
   128 _LIT8( KContentType, "content_type" );
       
   129 _LIT8( KContentId, "content_id" );
       
   130 _LIT8( KExpirationDate, "expiration_date" );
       
   131 _LIT8( KActivatePublisher, "activate" );
       
   132 _LIT8( KIds, "ids" );
       
   133 _LIT8( KId, "id" );
       
   134 _LIT8( KFlag, "flag");
       
   135 _LIT8( KAccessList, "ACL" );
       
   136 _LIT8( KACLRead, "read");
       
   137 _LIT8( KACLWrite, "write");
       
   138 _LIT8( KACLDelete, "delete");
       
   139 _LIT8( KUIDs, "UID" );
       
   140 _LIT8( KCapability, "Capability" );
       
   141 _LIT( KAll, "all");
       
   142 _LIT( KSortPublisher, "publisher");
       
   143 _LIT( KSortContentType, "content_type");
       
   144 _LIT( KSortContentId, "content_id");
       
   145 _LIT( KSortRecent, "recent");
       
   146 _LIT( KOperationAdd, "add" );
       
   147 _LIT( KOperationUpdate, "update" );
       
   148 _LIT( KOperationDelete, "delete" );
       
   149 _LIT( KOperationExecute, "execute" );
       
   150 _LIT8( KDataType, "data_type" );
       
   151 _LIT8( KOperation, "operation" );
       
   152 _LIT8( KActionTrigger, "action_trigger" );
       
   153 _LIT8( KHardcodedText, "harcoded_text" );
       
   154 _LIT8( KResourceText, "resource_text" );
       
   155 _LIT8( KFilepathImage, "filepath_image" );
       
   156 _LIT8( KIdMask, "id_mask" );
       
   157 _LIT8( KResourceIcon, "resource_icon" );
       
   158 _LIT8( KIdIcon, "id_icon" );
       
   159 _LIT8( KIdText, "id_text" );
       
   160 _LIT( KCpData, "cp_data" );
       
   161 _LIT( KPublisher, "publisher" );
       
   162 _LIT8( KChangeInfo, "change_info" );
       
   163 
       
   164 _LIT8( KPublisher_Uid, "publisher_Uid" );
       
   165 
       
   166 // Argument in Action
       
   167 _LIT8( KActionHandlerInterface, "IDataAction" );
       
   168 _LIT8( KActionHandlerService, "Service.ActionHandler" );
       
   169 _LIT8( KCmdExecute, "Execute" );
       
   170 _LIT8( KPluginUid, "plugin_id" );
       
   171 _LIT8( KDataForActionHandler, "data" );
       
   172 
       
   173 _LIT8( KLaunchMethod, "launch_method" );
       
   174 _LIT8( KApplicationUid, "application_uid" );
       
   175 _LIT8( KDocumentName, "document_name" );
       
   176 _LIT8( KViewId, "view_id" );
       
   177 _LIT8( KMessageUid, "message_uid" );
       
   178 
       
   179 // Output
       
   180 _LIT8( KResults, "results" );
       
   181 _LIT8( KListMap, "list_map" );
       
   182 _LIT8( KStatus, "status" );
       
   183 _LIT8( KDataMap, "data_map" );
       
   184 _LIT8( KActionMap, "action_map" );
       
   185 _LIT8( KKey, "key" );
       
   186 
       
   187 _LIT8( KTransactionID, "TransactionID" );
       
   188 
       
   189 #endif /*GLXMAPCONSTANTS_H*/