phonebookui/Phonebook2/ServerApplication/inc/CPbk2AppService.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Phonebook 2 application server service class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2APPSERVICE_H
       
    20 #define CPBK2APPSERVICE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <AknServerApp.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class MPbk2AppService;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  * Phonebook 2 application server service class.
       
    32  * Responsible for:
       
    33  * - selecting correct service by interpreting the IPC parameters
       
    34  * - performing security checks for the clients
       
    35  */
       
    36 class CPbk2AppService : public CAknAppServiceBase
       
    37     {
       
    38     public: // Construction and destruction
       
    39 
       
    40         /**
       
    41          * Creates a new instance of this class.
       
    42          *
       
    43          * @return  A new instance of this class.
       
    44          */
       
    45         static CPbk2AppService* NewL();
       
    46 
       
    47         /**
       
    48          * Destructor.
       
    49          */
       
    50         ~CPbk2AppService();
       
    51 
       
    52     private: // From CAknAppServiceBase
       
    53         void ServiceL(
       
    54                 const RMessage2& aMessage );
       
    55         CPolicyServer::TCustomResult SecurityCheckL(
       
    56                 const RMessage2& aMsg,
       
    57                 TInt& aAction,
       
    58                 TSecurityInfo& aMissing );
       
    59 
       
    60     private: // Implementation
       
    61         CPbk2AppService();
       
    62         void StoreExitRequest(
       
    63                 const RMessage2& aMessage );
       
    64         void CancelExitRequest(
       
    65                 const RMessage2& aMessage );
       
    66         void StoreAcceptRequest(
       
    67                 const RMessage2& aMessage );
       
    68         void CancelAcceptRequest(
       
    69                 const RMessage2& aMessage );
       
    70 
       
    71 
       
    72     protected: // Data
       
    73         /// Own: Exit message used for quering ok to exit
       
    74         RMessage2 iExitMsg;
       
    75         /// Own: Accept message used for quering acceptance
       
    76         RMessage2 iAcceptMsg;
       
    77         /// Own: Fetch service
       
    78         MPbk2AppService* iFetchService;
       
    79         /// Own: Assign service
       
    80         MPbk2AppService* iAssignService;
       
    81     };
       
    82 
       
    83 #endif // CPBK2APPSERVICE_H
       
    84 
       
    85 // End of File