imstutils/imconversationview/imcvuiapp/src/cimcvappdocument.cpp
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     1 /*
       
     2 * Copyright (c) 2007-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:  application document
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "cimcvappdocument.h"
       
    20 #include "cimcvappui.h"
       
    21 #include "mimcvappui.h"
       
    22 // Standard Symbian OS construction sequence
       
    23 CIMCVAppDocument* CIMCVAppDocument::NewL(CEikApplication& aApp)
       
    24     {
       
    25     CIMCVAppDocument* self = NewLC(aApp);
       
    26     CleanupStack::Pop(self);
       
    27     return self;
       
    28     }
       
    29 // ---------------------------------------------------------
       
    30 // CIMCVAppDocument::NewLC()
       
    31 // two phase construction
       
    32 // ---------------------------------------------------------
       
    33 //
       
    34 CIMCVAppDocument* CIMCVAppDocument::NewLC(CEikApplication& aApp)
       
    35     {
       
    36     CIMCVAppDocument* self = new (ELeave) CIMCVAppDocument(aApp);
       
    37     CleanupStack::PushL(self);
       
    38     self->ConstructL();
       
    39     return self;
       
    40     }
       
    41 // ---------------------------------------------------------
       
    42 // CIMCVAppDocument::ConstructL()
       
    43 // ---------------------------------------------------------
       
    44 //
       
    45 void CIMCVAppDocument::ConstructL()
       
    46     {
       
    47 	// no implementation required
       
    48     }    
       
    49 // ---------------------------------------------------------
       
    50 // CIMCVAppDocument::CIMCVAppDocument()
       
    51 // ---------------------------------------------------------
       
    52 //
       
    53 CIMCVAppDocument::CIMCVAppDocument(CEikApplication& aApp) : CAknDocument(aApp) 
       
    54     {
       
    55 	// no implementation required
       
    56     }
       
    57 // ---------------------------------------------------------
       
    58 // CIMCVAppDocument::~CIMCVAppDocument()
       
    59 // ---------------------------------------------------------
       
    60 //
       
    61 CIMCVAppDocument::~CIMCVAppDocument()
       
    62     {
       
    63 	// no implementation required
       
    64     }
       
    65 // ---------------------------------------------------------
       
    66 // CIMCVAppDocument::CreateAppUiL()
       
    67 // ---------------------------------------------------------
       
    68 //
       
    69 CEikAppUi* CIMCVAppDocument::CreateAppUiL()
       
    70     {
       
    71     // Create the application user interface, and return a pointer to it,
       
    72     // the framework takes ownership of this object
       
    73     CEikAppUi* appUi = new (ELeave) CIMCVAppUi;
       
    74     return appUi;
       
    75     }
       
    76 
       
    77 // ----------------------------------------------------
       
    78 // CIMCVAppDocument::UpdateTaskNameL()
       
    79 // Makes Startup-application hidden in menu shell and fastswap window
       
    80 // ----------------------------------------------------
       
    81 void CIMCVAppDocument::UpdateTaskNameL( CApaWindowGroupName* aWgName )
       
    82     {
       
    83     CEikDocument::UpdateTaskNameL( aWgName );
       
    84     aWgName->SetHidden( ETrue );
       
    85     }
       
    86     
       
    87 // end of file