searcher/searchclient/inc/searchservercommon.h
changeset 0 671dee74050a
child 8 6547bf8ca13a
equal deleted inserted replaced
-1:000000000000 0:671dee74050a
       
     1 /*
       
     2 * Copyright (c) 2010 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 *
       
    16 */
       
    17 
       
    18 #ifndef __CLIENTSERVERCOMMON_H__
       
    19 #define __CLIENTSERVERCOMMON_H__
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <e32base.h>
       
    23 
       
    24 /** @addtogroup Common */
       
    25 /*\@{*/
       
    26 
       
    27 /**
       
    28  * @file 
       
    29  * @ingroup Common
       
    30  * @brief Constants and codes associated with CPix client server communication
       
    31  */
       
    32 
       
    33 
       
    34 // CONSTANTS
       
    35 _LIT( KSearchServerName,"CPixSearchServer" ); // Server name
       
    36 _LIT( KSearchServerSemaphoreName, "CPixSearchServerSemaphore" );
       
    37 
       
    38 // The server version. A version must be specified when
       
    39 // creating a session with the server.
       
    40 const TUint KSearchServerMajorVersionNumber=1;
       
    41 const TUint KSearchServerMinorVersionNumber=0;
       
    42 const TUint KSearchServerBuildVersionNumber=0;
       
    43 
       
    44 // DATA TYPES
       
    45 /** 
       
    46  * @brief Opcodes used in message passing between client and server
       
    47  * 
       
    48  * CSearchServer is CPolicyServer and uses these values to define security policies
       
    49  * for messages. If these values are changed then CSearchServer security policy
       
    50  * values must be updated accordingly.
       
    51  */
       
    52 enum TSearchServerRequest
       
    53 {
       
    54 	// Session related requests
       
    55 	ESearchServerCreateSubSession = 1,
       
    56 	ESearchServerCloseSession,
       
    57 	
       
    58 	// Sub-session related requests
       
    59 	ESearchServerInitSubSession,
       
    60 	ESearchServerCloseSubSession,
       
    61 	ESearchServerOpenDatabase,
       
    62     ESearchServerSearch,
       
    63     ESearchServerGetDocument,
       
    64     ESearchServerGetDocumentObject,
       
    65     ESearchServerAdd,
       
    66     ESearchServerUpdate,
       
    67     ESearchServerDelete,
       
    68     ESearchServerReset,
       
    69     ESearchServerFlush,
       
    70     ESearchServerCancelAll,
       
    71     // Define the Index Database
       
    72     ESearchServerDatabaseDefine,
       
    73     // Undefine the Index Database
       
    74     ESearchServerDatabaseUnDefine,
       
    75 
       
    76     // Log player related commands
       
    77     ESearchServerStopHouseKeeping,
       
    78     ESearchServerContinueHouseKeeping,
       
    79     ESearchServerForceHouseKeeping,
       
    80 
       
    81     // Set analyzer. This must be latest message. Following messages
       
    82     // are not supported by server
       
    83     ESearchServerSetAnalyzer    
       
    84 };
       
    85 
       
    86 /** 
       
    87  * @brief Opcodes used by server to indicate which asynchronous service has completed
       
    88  */
       
    89 enum TSearchServerRqstComplete
       
    90 {
       
    91     ESearchServerSearchComplete = 1
       
    92 };
       
    93 
       
    94 /*\@}*/ // group common
       
    95 
       
    96 #endif // __CLIENTSERVERCOMMON_H__
       
    97 
       
    98 // End of file
       
    99