messagingfw/deprecate/senduiservices/launcher/inc/senduilauncherappui.h
branchRCL_3
changeset 23 d51193d814ea
parent 22 d2c4c66342f3
child 24 002ade1da91c
equal deleted inserted replaced
22:d2c4c66342f3 23:d51193d814ea
     1 /*
       
     2 * Copyright (c) 2009 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 application for launching SendUi with low 
       
    15 *                capability requirements.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef C_CSENDUILAUNCHERAPPUI_H
       
    24 #define C_CSENDUILAUNCHERAPPUI_H
       
    25 
       
    26 
       
    27 #include <aknappui.h>
       
    28 
       
    29 class CMessageData;
       
    30 
       
    31 /**
       
    32  *  Launcher application ui constructs SendUi object
       
    33  *
       
    34  *  ?more_complete_description
       
    35  *
       
    36  *  @since S60 v.3.2
       
    37  */
       
    38 class CSendUiLauncherAppUi : public CAknAppUi
       
    39     {
       
    40 
       
    41 public:
       
    42 
       
    43     virtual ~CSendUiLauncherAppUi ();
       
    44 
       
    45     /**
       
    46      * Creates and sends message
       
    47      *
       
    48      * @since S60 v.3.2
       
    49      * @param aServiceId Uid of the requested service
       
    50      * @param aMessageData Message data
       
    51      * @param aLaunchEmbedded ETrue if editor is to be launched embedded. 
       
    52      *      Otherwise EFalse.
       
    53      */
       
    54    void CreateAndSendMessageL( 
       
    55         TUid aServiceUid, 
       
    56         CMessageData* aMessageData, 
       
    57         TBool aLaunchEmbedded );
       
    58         
       
    59     /**
       
    60      * Used for exiting server application properly
       
    61      *
       
    62      * @since S60 v.3.2
       
    63      * @param aThis Pointer to this AppUi
       
    64      */
       
    65     static TInt DelayedExit( TAny* aThis );
       
    66 
       
    67     /**
       
    68      * Does delayed exit earliest after specified delay
       
    69      *
       
    70      * @since S60 v.3.2
       
    71      * @param aDelayTime Requested delay in microseconds
       
    72      */
       
    73    void DoDelayedExitL( TInt aDelayTime );
       
    74    
       
    75 // from base class CAknAppUi
       
    76 
       
    77     /**
       
    78      * From CAknAppUi.
       
    79      * Handles commands. Only Exit is implemented.
       
    80      *
       
    81      * @since S60 v.3.2
       
    82      * @param aCommand Command code
       
    83      */
       
    84      void HandleCommandL(TInt aCommand);
       
    85     
       
    86      CSendUiLauncherAppUi();
       
    87 
       
    88 private:
       
    89 
       
    90  
       
    91     void ConstructL();
       
    92 
       
    93 private: // data
       
    94 
       
    95     /**
       
    96      * Timer for the delayed exit function
       
    97      * Own. 
       
    98      */
       
    99     CPeriodic* iIdle;
       
   100 
       
   101     };
       
   102 
       
   103 
       
   104 #endif // C_CSENDUILAUNCHERAPPUI_H