uiacceltk/hitchcock/ServerInterface/src/alfdocument.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 07:56:43 +0200
changeset 0 15bf7259bb7c
child 22 7c5dd702d6d3
permissions -rw-r--r--
Revision: 201003

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   Document definition
*
*/



#include <apgwgnam.h>
#include "alfdocument.h"
#include "alfapplication.h"
#include "alf/alfappui.h"


_LIT(KSERVERNAME, "ALF");
// ======== MEMBER FUNCTIONS ========

// ---------------------------------------------------------------------------
// Constructor
// ---------------------------------------------------------------------------
//
CAlfDocument::CAlfDocument( CAlfApplication& aApplication )
: CAknDocument( aApplication )
    {
    }

// ---------------------------------------------------------------------------
// From class CAknDocument.
// Allocates the appui instance.
// ---------------------------------------------------------------------------
//
CEikAppUi* CAlfDocument::CreateAppUiL()
    {
    return new (ELeave) CAlfAppUi;
    }


// This is currently only place where we can modify CEikonEnv's instance of wgname
// that would override our custom settings in AppReady
void CAlfDocument::UpdateTaskNameL(CApaWindowGroupName* aWgName)
    {
    aWgName->SetHidden(ETrue); // hides us from FSW and protects us from OOM FW etc.
    aWgName->SetSystem(ETrue); // Allow only application with PowerManagement cap to shut us down    
    aWgName->SetCaptionL(KSERVERNAME); // user friendly name of server
    }