contacts_plat/predictivesearch_utils_api/inc/CPcsDefs.h
branchRCL_3
changeset 12 4ae315f230bc
parent 11 2828b4d142c0
child 13 a6539d1e8e43
equal deleted inserted replaced
11:2828b4d142c0 12:4ae315f230bc
    17 
    17 
    18 #ifndef __PCSSERVERDEFS_H__
    18 #ifndef __PCSSERVERDEFS_H__
    19 #define __PCSSERVERDEFS_H__
    19 #define __PCSSERVERDEFS_H__
    20 
    20 
    21 #include <e32base.h>
    21 #include <e32base.h>
    22 #include <BidiText.h>
    22 #include <biditext.h>
    23 
    23 
    24 /**
    24 /**
    25  * PCS Server Exe Name
    25  * PCS Server Exe Name
    26  */
    26  */
    27 _LIT(KPcsServerName,           "PcsServer");
    27 _LIT(KPcsServerName,           "PcsServer");
    56 /**
    56 /**
    57  * PS Server response commands
    57  * PS Server response commands
    58  */
    58  */
    59 enum TPsServerResponseCommand
    59 enum TPsServerResponseCommand
    60 {
    60 {
    61 	ESearchComplete,
    61     ESearchComplete,
    62 	ECancelComplete
    62     ECancelComplete
    63 };
    63 };
    64 
    64 
    65 /**
    65 /**
    66  * PS Keyboard Modes
    66  * PS Keyboard Modes
    67  */
    67  */
   104 /**
   104 /**
   105  * Different states of Caching
   105  * Different states of Caching
   106  */
   106  */
   107 enum TCachingStatus
   107 enum TCachingStatus
   108 {
   108 {
   109 	ECachingNotStarted         =  0,
   109     ECachingNotStarted          =  0,
   110 	ECachingInProgress         = 10,
   110     ECachingInProgress          = 10,
   111 	ECachingComplete           = 20,
   111     ECachingComplete            = 20,
   112 	ECachingCompleteWithErrors = 30
   112     ECachingCompleteWithErrors  = 30,
       
   113     ECacheUpdateContactRemoved  = 40,
       
   114     ECacheUpdateContactModified = 50,
       
   115     ECacheUpdateContactAdded    = 60
   113 };
   116 };
   114 
   117 
   115 /**
   118 /**
   116  * Different sort types
   119  * Different sort types
   117  */
   120  */
   118 enum TSortType
   121 enum TSortType
   119 {
   122 {
   120 	EPatternBased,
   123     EPatternBased,
   121 	EAlphabetical
   124     EAlphabetical
   122 };
   125 };
   123 
   126 
   124 /**
   127 /**
   125  * PCS Plugin Interface UID
   128  * PCS Plugin Interface UID
   126  */
   129  */
   137 
   140 
   138 /**
   141 /**
   139  * Central Repository constants
   142  * Central Repository constants
   140  */
   143  */
   141 const TInt KCRMaxLen = 255;
   144 const TInt KCRMaxLen = 255;
   142 const TInt KPsQueryMaxLen = 50;
   145 const TInt KPsQueryMaxLen = 150;
   143 const TInt KBufferMaxLen = 255;
   146 const TInt KBufferMaxLen = 255;
   144 const TInt KSearchResultsBufferLen = 8192;
   147 const TInt KSearchResultsBufferLen = 8192;
   145 
   148 
   146 /**
   149 /**
   147  * Data Stores Constants 
   150  * Data Stores Constants 
   167  * Character constants
   170  * Character constants
   168  */
   171  */
   169 const TInt KUnitSeparator  = 31;
   172 const TInt KUnitSeparator  = 31;
   170 const TInt KSpaceCharacter = 32;
   173 const TInt KSpaceCharacter = 32;
   171 
   174 
       
   175 /**
       
   176  * Publish & Subscribe ID and keys for internal use of PCS
       
   177  */
       
   178 const TUid KPcsInternalUidCacheStatus = {0x2000B5B6};
       
   179 enum TPcsInternalKeyCacheStatus
       
   180     {
       
   181     EPsKeyCacheStatus            = 0,
       
   182     EPsKeyCacheError             = 1,
       
   183     EPsKeyContactRemovedCounter  = 2,
       
   184     EPsKeyContactModifiedCounter = 3,
       
   185     EPsKeyContactAddedCounter    = 4
       
   186     };
       
   187 
       
   188 
   172 #endif // __PCSSERVERDEFS_H__
   189 #endif // __PCSSERVERDEFS_H__
   173 
   190 
   174 // End of file
   191 // End of file