sapi_logging/tsrc/testing/tlogprovidertest/inc/tconstants.h
changeset 0 14df0fbfcc4e
equal deleted inserted replaced
-1:000000000000 0:14df0fbfcc4e
       
     1 /*
       
     2 * Copyright (c) 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 the License "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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TCONSTANTS_H
       
    20 #define TCONSTANTS_H 
       
    21 /**
       
    22  * InterfaceName ILogging
       
    23  * Contenttypes Service.Logging
       
    24  */
       
    25  // Filter fields
       
    26 #define ELogFirstFilterField 0x1
       
    27 #define ELogContactField 0x1
       
    28 #define ELogDirectionField 0x2
       
    29 #define ELogDurationTypeField 0x4
       
    30 #define ELogEventTypeField 0x8
       
    31 #define ELogNumberField 0x10
       
    32 #define ELogRemotePartyField 0x20
       
    33 #define ELogStatusField 0x40
       
    34 #define ELogStartTimeField 0x80
       
    35 #define ELogEndTimeField 0x100
       
    36 #define ELogFlagsField 0x200
       
    37 #define ELogSubjectField 0x400
       
    38 #define ELogLinkField 0x800
       
    39 #define ELogDataField 0x1000
       
    40 #define ELogLastFilterField 0x200
       
    41  
       
    42 _LIT8(KDsInterfaceName , "IDataSource") ;
       
    43 _LIT8(KLoggingContents , "Service.Logging") ;
       
    44 
       
    45 
       
    46 /**
       
    47  * Error Indntifier in Output parameter list
       
    48  */
       
    49  _LIT8(KErrorCode , "ErrorCode") ; 
       
    50  
       
    51 
       
    52 /**
       
    53  * Content type
       
    54  */
       
    55  
       
    56  _LIT16(KContentType , "Log") ;
       
    57  
       
    58 /**
       
    59  * Content Type Key
       
    60  */
       
    61  _LIT8(KContentTypeKey , "Type") ; 
       
    62 /**
       
    63  * Operations on the IDatasource(Logging) interface
       
    64  */
       
    65  _LIT8(KCmdAdd , "Add") ;
       
    66 _LIT8(KCmdDelete , "Delete") ; 
       
    67  _LIT8(KCmdGetList ,"GetList") ;
       
    68  _LIT8(KCmdRequestNotification ,"NotifyUpdates") ;
       
    69  _LIT8(KCmdCancel ,"Cancel") ;
       
    70   _LIT8(Kother ,"other") ;
       
    71  /**
       
    72   * Position Item
       
    73   */
       
    74   _LIT8(KPosItem , "PosItem") ;
       
    75  
       
    76  
       
    77 /**
       
    78  * Transaction id, which will be part of outparamlist for asynchronous request
       
    79  */
       
    80 _LIT8(KTransactionId, "TransactionID"); 
       
    81 
       
    82 /**
       
    83  * Event map that contains the details of the event to be logged 
       
    84  */
       
    85  
       
    86 /**
       
    87  * Filter for getlist operation
       
    88  */
       
    89  _LIT8(KFilter , "Filter") ; 
       
    90  _LIT8(KEventDetails , "Item") ;
       
    91  
       
    92  /**
       
    93   * DelayInterval....
       
    94   */
       
    95   _LIT8(KDelayTime , "DelayTime") ;
       
    96  
       
    97  /**
       
    98   * Key for identifying the type of the event in event map
       
    99   */
       
   100 _LIT8(KEventTypeKey , "EventType") ;
       
   101 
       
   102  /**
       
   103   * Key for identifying the remote party in event map
       
   104   */
       
   105 _LIT8(KRemotePartyKey , "RemoteParty") ;
       
   106 
       
   107  /**
       
   108   * Key for identifying the direction in event map
       
   109   */
       
   110 _LIT8(KDirectionKey , "Direction") ;
       
   111 
       
   112  /**
       
   113   * Key for identifying the time in event map
       
   114   */
       
   115 _LIT8(KEventTimeKey , "EventTime") ;
       
   116 
       
   117  /**
       
   118   * Key for identifying the duration in event map
       
   119   */
       
   120 _LIT8(KEventDurationKey , "EventDuration") ;
       
   121 
       
   122  /**
       
   123   * Key for identifying the deliverystatus in event map
       
   124   */
       
   125 _LIT8(KDeliveryStatusKey , "DeliveryStatus") ;
       
   126 
       
   127  /**
       
   128   * Key for identifying the subject in event map
       
   129   */
       
   130 _LIT8(KSubjectKey , "Subject") ;
       
   131 
       
   132 
       
   133  /**
       
   134   * Key for identifying the phonenumber in event map
       
   135   */
       
   136 _LIT8(KPhoneNumberKey , "PhoneNumber") ;
       
   137 
       
   138 
       
   139  /**
       
   140   * Key for identifying the contactid in event map
       
   141   */
       
   142 _LIT8(KContactidKey , "Contactid") ;
       
   143 
       
   144 _LIT8(KData, "Data");
       
   145 
       
   146  /**
       
   147   * Key for identifying the description in event map
       
   148   */
       
   149 _LIT8(KDescriptionKey , "Description") ;
       
   150 
       
   151  _LIT8(KResponse,"ReturnValue");
       
   152 
       
   153  /**
       
   154   * Key for identifying the eventdata in event map
       
   155   */
       
   156 _LIT8(KEventDataKey , "EventData") ;
       
   157 
       
   158 
       
   159 
       
   160  /**
       
   161   * Key for identifying the link in event map
       
   162   */
       
   163 _LIT8(KLinkKey , "Link") ;
       
   164 
       
   165 /**
       
   166  * EndTime Key, for getlist filter
       
   167  */
       
   168  _LIT8(KEndTimeKey , "EndTime") ;
       
   169  
       
   170  
       
   171  
       
   172 /**
       
   173 * Key for the flags fields
       
   174 */
       
   175 _LIT8(KFlagsKey , "LogFlags") ;
       
   176 
       
   177 /**
       
   178 * Liwiterator key in outparamlist
       
   179 */
       
   180 _LIT8(KLogIter , "Iterator") ;
       
   181 
       
   182 /**
       
   183 * Error Code
       
   184 */
       
   185 _LIT8(KErrCode , "ErrorCode") ;
       
   186 
       
   187 /**
       
   188 * Keys for the filter input paramater for getlist api
       
   189 */
       
   190 _LIT8(KAllEvents , "All") ;
       
   191 
       
   192  /**
       
   193   * Key for RecentList for Filter 
       
   194   */
       
   195   _LIT8(KRecentListKey , "RecentList") ; 
       
   196   
       
   197   _LIT8(KLogId , "id") ;
       
   198   
       
   199 
       
   200   
       
   201  
       
   202  enum RequestType
       
   203     {
       
   204         EAddEvent ,
       
   205         EGetList ,
       
   206     }; 
       
   207   
       
   208  enum EeventType
       
   209     {
       
   210         KCallEvent ,
       
   211         KLogDataEvent,
       
   212         KLogFaxEvent,
       
   213         KLogShortMessageEvent,
       
   214         KLogMailEvent,
       
   215         KLogTaskSchedulerEvent,
       
   216         KLogPacketDataEvent,
       
   217         KLogLbsSelfLocateEvent,
       
   218         KLogLbsExternalLocateEvent,
       
   219         KLogLbsTransmitLocationEvent,
       
   220         KLogLbsNetworkLocateEvent,
       
   221         KLogLbsAssistanceDataEvent,
       
   222       
       
   223      }; 
       
   224        
       
   225    /*
       
   226 const TUid  KLogCallEventType =  { 0x1000550D} ;   
       
   227  
       
   228 
       
   229 const TUid KLogDataEventType ={0x10005566};
       
   230 const TUid KLogFaxEventType ={0x10005567};
       
   231 const TUid KLogShortMessageEventType ={0x10005568};
       
   232 const TUid KLogMailEventType ={0x10005569};
       
   233 const TUid KLogTaskSchedulerEventType = {0x1000585E};
       
   234 const TUid KLogPacketDataEventType ={ 0x10008F8E};
       
   235 const TUid KLogLbsSelfLocateEventType ={0x102822B2};
       
   236 const TUid KLogLbsExternalLocateEventType ={0x102822B3};
       
   237 const TUid KLogLbsTransmitLocationEventType= {0x102822B4};
       
   238 const TUid KLogLbsNetworkLocateEventType ={0x102822B5};
       
   239 const TUid KLogLbsAssistanceDataEventType ={0x102822B6};
       
   240 
       
   241  
       
   242 */
       
   243 
       
   244 
       
   245 
       
   246 
       
   247 
       
   248 
       
   249 #endif 
       
   250  
       
   251