phonebookui/Phonebook2/ccapplication/ccapp/inc/ccaappservice.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 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:  Server-side service implementation
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CCAAPPSERVICE_H
       
    19 #define CCAAPPSERVICE_H
       
    20 
       
    21 #include <f32file.h>
       
    22 #include <eikdoc.h>
       
    23 #include <AknServerApp.h>
       
    24 #include "ccaappappui.h"
       
    25 
       
    26 // for logging purposes
       
    27 #define KCCAppLogFile CCA_L("ccaapp.txt")
       
    28 
       
    29  /**
       
    30  *  Server-side message editor/viewer service implementations
       
    31  *
       
    32  *  @lib ccaapp.exe
       
    33  *  @since S60 v5.0
       
    34  */
       
    35 class CCAAppService : public CAknAppServiceBase
       
    36 	{
       
    37 
       
    38 public:
       
    39 
       
    40 	/**
       
    41 	* Constructor
       
    42 	*/
       
    43 	CCAAppService();
       
    44 
       
    45 	/**
       
    46 	* Destructor
       
    47 	*/
       
    48 	~CCAAppService();
       
    49 
       
    50 private:
       
    51 
       
    52     /**
       
    53      * Reads message and transfers commands to app UI class
       
    54      *
       
    55      * @since S60 v5.0
       
    56      * @param aMessage contains CCCAParameter
       
    57      */
       
    58     void ReadMsgL( const RMessage2& aMessage );
       
    59 
       
    60 protected:
       
    61 
       
    62 // from base class CAknAppServiceBase
       
    63 
       
    64     /**
       
    65      * From CAknAppServiceBase
       
    66      * (see details from header)
       
    67      *
       
    68      * @since S60 v5.0
       
    69      */
       
    70 	void CreateL();
       
    71 
       
    72     /**
       
    73      * From CAknAppServiceBase
       
    74      * (see details from header)
       
    75      *
       
    76      * @since S60 v5.0
       
    77      */
       
    78      void ServiceL(const RMessage2& aMessage);
       
    79 
       
    80     /**
       
    81      * From CAknAppServiceBase
       
    82      * (see details from header)
       
    83      *
       
    84      * @since S60 v5.0
       
    85      */
       
    86      void ServiceError(const RMessage2& aMessage,TInt aError);
       
    87 
       
    88 private:
       
    89 
       
    90     /**
       
    91      * Pointer to app UI class
       
    92      * Not own.
       
    93      */
       
    94     CCCAAppAppUi* iAppUi;
       
    95 
       
    96 	};
       
    97 
       
    98 #endif //CCAAPPSERVICE_H
       
    99 
       
   100 
       
   101 // End of file