taskswitcher/teleportui/hgteleportapp/inc/hgteleportdocument.h
changeset 4 4d54b72983ae
parent 3 fb3763350a08
child 5 c743ef5928ba
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
     1 /*
       
     2  * ============================================================================
       
     3  *  Name        : hgteleportdocument.h
       
     4  *  Part of     : Hg Teleport
       
     5  *  Description : Document class
       
     6  *  Version     : %version: sa1spcx1#6 %
       
     7  *
       
     8  *  Copyright © 2008 Nokia.  All rights reserved.
       
     9  *  This material, including documentation and any related computer
       
    10  *  programs, is protected by copyright controlled by Nokia.  All
       
    11  *  rights are reserved.  Copying, including reproducing, storing,
       
    12  *  adapting or translating, any or all of this material requires the
       
    13  *  prior written consent of Nokia.  This material also contains
       
    14  *  confidential information which may not be disclosed to others
       
    15  *  without the prior written consent of Nokia.
       
    16  * ============================================================================
       
    17  * 
       
    18  */
       
    19 
       
    20 #ifndef HGTELEPORTDOCUMENT_H
       
    21 #define HGTELEPORTDOCUMENT_H
       
    22 
       
    23 #include <e32base.h> 
       
    24 #include <AknDoc.h>
       
    25 
       
    26 class CHgTeleportDocument : public CAknDocument
       
    27     {
       
    28 public:
       
    29     /**
       
    30      * Construct a CHgTeleportDocument for the AVKON application aApp
       
    31      * using two phase construction, and return a pointer to the created object
       
    32      * aApp application creating this document
       
    33      *
       
    34      * @since S60 v5.0
       
    35      * @return a pointer to the created instance of CHgTeleportDocument
       
    36      */
       
    37     static CHgTeleportDocument* NewL( CEikApplication& aApp );
       
    38 
       
    39     /**
       
    40      * Construct a CHgTeleportDocument for the AVKON application aApp
       
    41      * using two phase construction, and return a pointer to the created object
       
    42      *
       
    43      * @since S60 v5.0
       
    44      * @param aApp application creating this document
       
    45      * @return a pointer to the created instance of CHgTeleportDocument
       
    46      */
       
    47     static CHgTeleportDocument* NewLC( CEikApplication& aApp );
       
    48 
       
    49     /**
       
    50      * Destroy the object and release all memory objects
       
    51      *
       
    52      * @since S60 v5.0
       
    53      */
       
    54     ~CHgTeleportDocument( );
       
    55 
       
    56     /**
       
    57      * Makes Startup-application hidden in menu shell and fastswap window
       
    58      *
       
    59      * @since S60 v5.0
       
    60      * @param aWgName application windows group name
       
    61      */
       
    62     void UpdateTaskNameL( CApaWindowGroupName* aWgName );
       
    63 
       
    64 public:
       
    65     // from CAknDocument
       
    66     /**
       
    67      * Create a ChgteleportAppUi object and return a pointer to it
       
    68      *
       
    69      * @since S60 v5.0
       
    70      * @return a pointer to the created instance of the AppUi created
       
    71      */
       
    72     CEikAppUi* CreateAppUiL( );
       
    73 
       
    74 private:
       
    75     /**
       
    76      * Perform the second phase construction of a CHgTeleportDocument object
       
    77      *
       
    78      * @since S60 v5.0
       
    79      */
       
    80     void ConstructL( );
       
    81 
       
    82     /**
       
    83      * Perform the first phase of two phase construction
       
    84      *
       
    85      * @since S60 v5.0
       
    86      * @param aApp application creating this document
       
    87      */
       
    88     CHgTeleportDocument( CEikApplication& aApp );
       
    89     };
       
    90 
       
    91 #endif // HGTELEPORTDOCUMENT_H