messagingfw/senduiservices/launcher/inc/senduiservice.h
branchRCL_3
changeset 23 d51193d814ea
parent 0 8e480a14352b
equal deleted inserted replaced
22:d2c4c66342f3 23:d51193d814ea
       
     1 /*
       
     2 * Copyright (c) 2006 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:   Communication class between SendUi and SendUiLauncher
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_CSENDUISERVICE_H
       
    22 #define C_CSENDUISERVICE_H
       
    23 
       
    24 
       
    25 #include <AknServerApp.h>
       
    26 
       
    27 #include "senduilauncher.hrh"
       
    28 // forward declarations
       
    29 class RDesReadStream;
       
    30 class CSendUiLauncherAppUi;
       
    31 class CMessageData;
       
    32 
       
    33 
       
    34 /**
       
    35  *  SendUi launch service implementation class
       
    36  *
       
    37  *  ?more_complete_description
       
    38  *
       
    39  *  @since S60 v.3.2
       
    40  */
       
    41 NONSHARABLE_CLASS (CSendUiService) : public CAknAppServiceBase
       
    42     {
       
    43 
       
    44 public:
       
    45 
       
    46     /**  IPC message slots */
       
    47     enum TIpcSlots
       
    48             {
       
    49             ESlot1 = 0,
       
    50             ESlot2,
       
    51             ESlot3
       
    52             };
       
    53 
       
    54     static CSendUiService* NewL();
       
    55 
       
    56     virtual ~CSendUiService();
       
    57 
       
    58 // from base class CAknAppServiceBase
       
    59 
       
    60     /**
       
    61      * From CAknAppServiceBase.
       
    62      * Server side service implementation
       
    63      *
       
    64      * @since S60 v.3.2
       
    65      * @param RMessage2& IPC message
       
    66      */
       
    67     void ServiceL( const RMessage2& aMessage );
       
    68         
       
    69 private:
       
    70 
       
    71     void ConstructL();
       
    72 
       
    73 private: // data
       
    74 
       
    75     /**
       
    76      * Temporary storage for the incoming message data
       
    77      * Own.
       
    78      */
       
    79      TInt iTransferredBytes;
       
    80     
       
    81     /**
       
    82      * Temporary storage for the incoming message data
       
    83      * Own.
       
    84      */
       
    85     HBufC8* iTransferBuffer;
       
    86     
       
    87     /**
       
    88      * Message data container
       
    89      * Own.
       
    90      */
       
    91     CMessageData* iMessageData;
       
    92 
       
    93     /**
       
    94      * Pointer to application ui.
       
    95      * Not own.
       
    96      */
       
    97     CSendUiLauncherAppUi* iAppUi;
       
    98     
       
    99     /**
       
   100      * Readstream
       
   101      * Own.
       
   102      */
       
   103      RDesReadStream* iReadStream;
       
   104     };
       
   105 
       
   106 #endif // C_CSENDUISERVICE_H