srsf/vcommandmanager/src/vcmanagerdocument.cpp
changeset 13 57b735022c18
parent 1 b13cd05eeb2f
equal deleted inserted replaced
1:b13cd05eeb2f 13:57b735022c18
     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:  VCommandManager document class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 
       
    21 #include <apgwgnam.h>
       
    22 
       
    23 #include "vcmanagerdocument.h"
       
    24 #include "vcmanagerappui.h"
       
    25 
       
    26 // ================= MEMBER FUNCTIONS =======================
       
    27 
       
    28 // ----------------------------------------------------------------------------
       
    29 // CVCommandManagerDocument::CVCommandManagerDocument
       
    30 // Default constructor
       
    31 // ----------------------------------------------------------------------------
       
    32 //
       
    33 CVCommandManagerDocument::CVCommandManagerDocument( CEikApplication& aApp ): 
       
    34                                                     CAknDocument( aApp )    
       
    35     {
       
    36     // Nothing
       
    37     }
       
    38 
       
    39 // ----------------------------------------------------------------------------
       
    40 // CVCommandManagerDocument::~CVCommandManagerDocument()
       
    41 // Destructor
       
    42 // ----------------------------------------------------------------------------
       
    43 //
       
    44 CVCommandManagerDocument::~CVCommandManagerDocument()
       
    45     {
       
    46     // Nothing
       
    47     }
       
    48 
       
    49 // ----------------------------------------------------------------------------
       
    50 // CVCommandManagerDocument::UpdateTaskNameL
       
    51 // Updates task name
       
    52 // ----------------------------------------------------------------------------
       
    53 //
       
    54 void CVCommandManagerDocument::UpdateTaskNameL( CApaWindowGroupName* aWgName )
       
    55     {
       
    56     CAknDocument::UpdateTaskNameL( aWgName );
       
    57     aWgName->SetHidden( ETrue ); 
       
    58     }
       
    59 
       
    60 // ----------------------------------------------------------------------------
       
    61 // CVCommandManagerDocument::ConstructL()
       
    62 // Second phase constructor
       
    63 // ----------------------------------------------------------------------------
       
    64 //
       
    65 void CVCommandManagerDocument::ConstructL()
       
    66     {
       
    67     // Nothing
       
    68     }
       
    69 
       
    70 // ----------------------------------------------------------------------------
       
    71 // CVCommandManagerDocument::NewL
       
    72 // Symbian constructor
       
    73 // ----------------------------------------------------------------------------
       
    74 //
       
    75 CVCommandManagerDocument* CVCommandManagerDocument::NewL( CEikApplication& aApp )
       
    76     {
       
    77     CVCommandManagerDocument* self = new (ELeave) CVCommandManagerDocument( aApp );
       
    78     CleanupStack::PushL( self );
       
    79     self->ConstructL();
       
    80     CleanupStack::Pop( self );
       
    81     return self;
       
    82     }
       
    83     
       
    84 // ----------------------------------------------------
       
    85 // CVCommandManagerDocument::CreateAppUiL
       
    86 // Instantiates AppUi
       
    87 // ----------------------------------------------------
       
    88 //
       
    89 CEikAppUi* CVCommandManagerDocument::CreateAppUiL()
       
    90     {
       
    91     return new (ELeave) CVCommandManagerAppUi;
       
    92     }
       
    93 
       
    94 // End of File