idlefw/plugins/wrtdataplugin/inc/wrtdatapluginconst.h
changeset 0 79c6a41cd166
child 3 ff572005ac23
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:
       
    15 * Content model for data plug-in.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef WRTDATAPLUGINCONST_H
       
    21 #define WRTDATAPLUGINCONST_H
       
    22 
       
    23 #include <aicontentmodel.h>
       
    24 #include "wrtdatapluginuids.hrh"
       
    25 
       
    26 // AI Data Plug-in ECOM implementation UID.
       
    27 const TInt KImplUidDataPlugin = WRTDP_UID_ECOM_IMPLEMENTATION_CONTENTPUBLISHER_DATAPLUGIN;
       
    28 const TUid KUidDataPlugin = { KImplUidDataPlugin };
       
    29 
       
    30 // ================================= CONTENT ===================================
       
    31 
       
    32 /**
       
    33  * Content Model type identifier
       
    34  */
       
    35 _LIT(KText ,"text");
       
    36 _LIT(KImage, "image");
       
    37 _LIT(KPlugin, "plugin");
       
    38 
       
    39 _LIT(KNewsTicker ,"newsticker");
       
    40 
       
    41 
       
    42 // CPS Constants
       
    43 _LIT(KService,         "service");
       
    44 _LIT(KInterface,       "interface");
       
    45 _LIT(KCommand,         "command");
       
    46 _LIT8( KType,          "type");
       
    47 _LIT( KCpData,         "cp_data");
       
    48 _LIT( KPubData,        "publisher" );
       
    49 _LIT( KCpData_PubData, "cp_data:publisher");
       
    50 
       
    51 _LIT8( KFilter,        "filter" );
       
    52 _LIT8( KDataMap,       "data_map");
       
    53 _LIT8( KActionTrigger, "action_trigger" );
       
    54 _LIT8( KGetList ,      "GetList" );
       
    55 _LIT8( KExecuteAction, "ExecuteAction" );
       
    56 _LIT8( KRequestNotification, "RequestNotification" );
       
    57 _LIT8( KChangeInfo, "change_info" );
       
    58 _LIT8( KListMap, "list_map" );
       
    59 _LIT8( KPublisherId, "publisher" );
       
    60 _LIT8( KContentType, "content_type" );
       
    61 _LIT8( KContentId,   "content_id" );
       
    62 _LIT8( KResults,      "results");
       
    63 _LIT8( KMenuItems,     "menuitems");
       
    64 _LIT( KMenuItem16,     "menuitem");
       
    65 _LIT( KAll, "all");
       
    66 _LIT8( KOperation, "operation" );
       
    67 _LIT8( KFLAG,      "flag");
       
    68 
       
    69 _LIT( KOperationAdd, "add" );
       
    70 _LIT( KOperationUpdate, "update" );
       
    71 _LIT( KOperationDelete, "delete" );
       
    72 _LIT( KOperationExecute, "execute" );
       
    73 _LIT( KAddUpdateDelete, "add:update:delete" );
       
    74 
       
    75 _LIT( KDeActive, "deactive");
       
    76 _LIT( KActive, "active");
       
    77 _LIT( KSuspend , "suspend");
       
    78 _LIT( KResume, "resume");
       
    79 _LIT( KOnLine, "online");
       
    80 _LIT( KOffLine, "offline");
       
    81 _LIT( KInActive, "inactive");
       
    82 // reserved extension for retrieving mask handle 
       
    83 _LIT8( KImageMask, "image1_mask");
       
    84 
       
    85 _LIT( KSkin, 		 "skin" );
       
    86 _LIT( KMif, 		 "mif" );
       
    87 _LIT( KMIFExtension, ".mif" );
       
    88 _LIT( KColon,		 ":");
       
    89 
       
    90 _LIT( KTemplateWidget,"ai3templatedwidget");
       
    91 _LIT( KWRTPublisher, "wrt_publisher");
       
    92 _LIT8(KImage1, "image1");
       
    93 const TUint KLeftParenthesis = '(';
       
    94 
       
    95 
       
    96 // WRT Data Plugin Constants
       
    97 const TUint KPluginNameSeprator =  '/';
       
    98 
       
    99 /**
       
   100  * Maximum length for the content name
       
   101  */
       
   102 const TInt KMaxTypeLength = 8;
       
   103 
       
   104 /**
       
   105  * Maximum length for the content name
       
   106  */
       
   107 const TInt KWRTContentNameMaxLength = 255;
       
   108 
       
   109 /**
       
   110  * Maximum length for the content value
       
   111  */
       
   112 const TInt KWRTContentValueMaxLength = 255;
       
   113 
       
   114 /**
       
   115  * Maximum length for the plugin name
       
   116  */
       
   117 const TInt KAiPluginNameMaxLength = 255;
       
   118 
       
   119 
       
   120 #endif /* WRTDATAPLUGINCONST_H */