taskswitcher/taskswitcherui/taskswitcherapp/src/tsdocument.cpp
changeset 4 4d54b72983ae
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Document class
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #include <apgwgnam.h>
       
    20 
       
    21 #include "tsappui.h"
       
    22 #include "tsdocument.h"
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // CTsDocument::NewLC( )
       
    26 // Create a CTsDocument object and return a pointer to it
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CTsDocument* CTsDocument::NewL( CEikApplication& aApp )
       
    30     {
       
    31     CTsDocument* self = NewLC ( aApp );
       
    32     CleanupStack::Pop ( self );
       
    33     return self;
       
    34     }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CTsDocument::NewLC( )
       
    38 // Create a CTsDocument object and return a pointer to it
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 CTsDocument* CTsDocument::NewLC( CEikApplication& aApp )
       
    42     {
       
    43     CTsDocument* self = new ( ELeave ) CTsDocument( aApp );
       
    44     CleanupStack::PushL ( self );
       
    45     self->ConstructL ( );
       
    46     return self;
       
    47     }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // CTsDocument::ConstructL( )
       
    51 // Second phase constructor
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 void CTsDocument::ConstructL( )
       
    55     {
       
    56     // no implementation required
       
    57     }
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // CTsDocument::~CTsDocument( )
       
    61 // First phase constructor
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 CTsDocument::CTsDocument( CEikApplication& aApp ) :
       
    65     CAknDocument( aApp )
       
    66     {
       
    67     // no implementation required
       
    68     }
       
    69 
       
    70 // -----------------------------------------------------------------------------
       
    71 // CTsDocument::~CTsDocument( )
       
    72 // Destructor
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 CTsDocument::~CTsDocument( )
       
    76     {
       
    77     // no implementation required
       
    78     }
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 // CTsDocument::CreateAppUiL( )
       
    82 // Create a CTsAppUi object and return a pointer to it
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 CEikAppUi* CTsDocument::CreateAppUiL( )
       
    86     {
       
    87     // Create the application user interface, and return a pointer to it,
       
    88     // the framework takes ownership of this object
       
    89     CEikAppUi* appUi = new ( ELeave ) CTsAppUi;
       
    90     return appUi;
       
    91     }
       
    92 
       
    93 // -----------------------------------------------------------------------------
       
    94 // CTsDocument::UpdateTaskNameL( )
       
    95 // Makes app hidden in fastswap window
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 void CTsDocument::UpdateTaskNameL( CApaWindowGroupName* aWgName )
       
    99     {
       
   100     CEikDocument::UpdateTaskNameL ( aWgName );
       
   101     aWgName->SetHidden ( ETrue );
       
   102     }
       
   103 
       
   104 
       
   105 // End of file