uiacceltk/hitchcock/ServerInterface/src/alfdocument.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 10:48:02 +0300
branchRCL_3
changeset 50 1801340c26a2
parent 22 7c5dd702d6d3
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* 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()
    {
    User::Leave(KErrNotSupported);    
    return 0;
    }


// 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
    }