phonebookengines/VirtualPhonebook/inc/VPbkSimServerOpCodes.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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:  Message code for the virtual phonebook sim server
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef VPBKSIMSERVEROPCODES_H
       
    21 #define VPBKSIMSERVEROPCODES_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32std.h>
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // The amount of asynchronous operations
       
    29 // Needed to reserve message slots for the server
       
    30 const TInt KVPbkSimSrvAsyncOperations = 7;
       
    31 
       
    32 // DATA TYPES
       
    33 enum TVPbkSimServerOpCodes
       
    34     {
       
    35     /**
       
    36     * Adds the client to store event array. Clients
       
    37     * are notfied when the state of the store changes.
       
    38     * Asynchronous.
       
    39     */
       
    40     EVPbkSimSrvStoreEventNotification = 1,
       
    41 
       
    42     /**
       
    43     * Closes the store.
       
    44     * Synchronous
       
    45     */
       
    46     EVPbkSimSrvCloseStore = 2,
       
    47 
       
    48     /**
       
    49     * Cancels a request 
       
    50     * Synchronous
       
    51     */
       
    52     EVPbkSimSrvCancelAsyncRequest = 3,
       
    53 
       
    54     /**
       
    55     * Opens a store. After this is done the store
       
    56     * ready for other requests
       
    57     * Synchronous
       
    58     */
       
    59     EVPbkSimSrvOpenStore = 4,
       
    60     
       
    61     /**
       
    62     * Gets the size of the contact and loads it to server side
       
    63     * Synchronous
       
    64     */
       
    65     EVPbkSimSrvGetSizeAndLoadContact = 5,
       
    66 
       
    67     /**
       
    68     * Reads the last loaded contact from the store
       
    69     * Synchronous
       
    70     */
       
    71     EVPbkSimSrvGetContact = 6,
       
    72 
       
    73     /**
       
    74     * Saves a contact to the (U)SIM
       
    75     * Asynchronous
       
    76     */
       
    77     EVPbkSimSrvSaveContact = 7,
       
    78 
       
    79     /**
       
    80     * Deletes a contact from the (U)SIM
       
    81     * Asynchronous
       
    82     */
       
    83     EVPbkSimSrvDeleteContact = 8,
       
    84 
       
    85     /**
       
    86     * Gets the basic gsm store properties
       
    87     * Synchronous
       
    88     */
       
    89     EVPbkSimSrvGsmStoreProperties = 9,
       
    90 
       
    91     /**
       
    92     * Gets the usim store properties
       
    93     * Synchronous
       
    94     */
       
    95     EVPbkSimSrvUSimStoreProperties = 10,
       
    96 
       
    97     /**
       
    98     * Finds a phone number match from the store
       
    99     * Asynchronous
       
   100     */
       
   101     EVPbkSimSrvMatchPhoneNumber = 11,
       
   102     
       
   103     /**
       
   104     * Finds a match from fields with given field types
       
   105     * Asynchronous
       
   106     */
       
   107     EVPbkSimSrvFind = 12,
       
   108     
       
   109     // VIEW MESSAGES
       
   110 
       
   111     /**
       
   112     * Opens a view subsession
       
   113     * Synchronous
       
   114     */
       
   115     EVPbkSimSrvOpenView = 101,
       
   116 
       
   117     /**
       
   118     * Closes a view subsession
       
   119     * Synchronous
       
   120     */
       
   121     EVPbkSimSrvCloseView = 102,
       
   122 
       
   123     /**
       
   124     * Activate view event notification
       
   125     * Asynchronous
       
   126     */
       
   127     EVPbkSimSrvViewEventNotification = 103,
       
   128 
       
   129     /**
       
   130     * Gets the amount contacts in the view
       
   131     * Synchronous
       
   132     */
       
   133     EVPbkSimSrvViewCount = 104,
       
   134 
       
   135     /**
       
   136     * Returns a view contact
       
   137     * Synchronous
       
   138     */
       
   139     EVPbkSimSrvGetViewContact = 105,
       
   140 
       
   141     /**
       
   142     * Starts reordering of contacts in the view
       
   143     * Synchronous
       
   144     */
       
   145     EVPbkSimSrvChangeViewSortOrder = 106,
       
   146 
       
   147     /**
       
   148     * Finds the current view index related to sim index
       
   149     * Synchronous
       
   150     */
       
   151     EVPbkSimSrvFindViewIndex = 107,
       
   152     
       
   153     /**
       
   154     * Contact matching prefix    
       
   155     * Asynchronous
       
   156     */
       
   157     EVPbkSimSrvContactMatchingPrefix = 108,
       
   158     
       
   159     /**
       
   160     * Get contact matching results
       
   161     * Synchronous
       
   162     */
       
   163     EVPbkSimSrvContactMathingResult = 109,
       
   164     
       
   165     /**
       
   166     * Get extenrnalized size of the sort order
       
   167     * Synchronous
       
   168     */
       
   169     EVPbkSimSrvViewSortOrderSize = 110,
       
   170     
       
   171     /**
       
   172     * Get sort order
       
   173     * Synchronous
       
   174     */
       
   175     EVPbkSimSrvViewSortOrder = 111,
       
   176     
       
   177     /// PHONE MESSAGES
       
   178     /**
       
   179      * Opens the phone
       
   180      * Synchronous
       
   181      */
       
   182     EVPbkSimSrvOpenPhone = 401,
       
   183 
       
   184     /**
       
   185      * Closes the phone
       
   186      * Synchronous
       
   187      */
       
   188     EVPbkSimSrvClosePhone = 402,
       
   189     
       
   190     /**
       
   191      * Gets the usim access support data
       
   192      * Synchronous
       
   193      */
       
   194     EVPbkSimSrvUSimAccessSupported = 403,   
       
   195 
       
   196     /**
       
   197      * Gets the service table
       
   198      * Synchronous
       
   199      */
       
   200     EVPbkSimSrvServiceTable = 404,    
       
   201 
       
   202     /**
       
   203      * Gets the fdn status
       
   204      * Synchronous
       
   205      */
       
   206     EVPbkSimSrvFixedDiallingStatus = 405    
       
   207     };
       
   208 
       
   209 #endif      // VPBKSIMSERVEROPCODES_H
       
   210 
       
   211 // End of File