uiacceltk/hitchcock/ServerInterface/src/alfdocument.cpp
changeset 0 15bf7259bb7c
child 22 7c5dd702d6d3
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     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:   Document definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <apgwgnam.h>
       
    21 #include "alfdocument.h"
       
    22 #include "alfapplication.h"
       
    23 #include "alf/alfappui.h"
       
    24 
       
    25 
       
    26 _LIT(KSERVERNAME, "ALF");
       
    27 // ======== MEMBER FUNCTIONS ========
       
    28 
       
    29 // ---------------------------------------------------------------------------
       
    30 // Constructor
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 CAlfDocument::CAlfDocument( CAlfApplication& aApplication )
       
    34 : CAknDocument( aApplication )
       
    35     {
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // From class CAknDocument.
       
    40 // Allocates the appui instance.
       
    41 // ---------------------------------------------------------------------------
       
    42 //
       
    43 CEikAppUi* CAlfDocument::CreateAppUiL()
       
    44     {
       
    45     return new (ELeave) CAlfAppUi;
       
    46     }
       
    47 
       
    48 
       
    49 // This is currently only place where we can modify CEikonEnv's instance of wgname
       
    50 // that would override our custom settings in AppReady
       
    51 void CAlfDocument::UpdateTaskNameL(CApaWindowGroupName* aWgName)
       
    52     {
       
    53     aWgName->SetHidden(ETrue); // hides us from FSW and protects us from OOM FW etc.
       
    54     aWgName->SetSystem(ETrue); // Allow only application with PowerManagement cap to shut us down    
       
    55     aWgName->SetCaptionL(KSERVERNAME); // user friendly name of server
       
    56     }