64
|
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 |
User::Leave(KErrNotSupported);
|
|
46 |
return 0;
|
|
47 |
}
|
|
48 |
|
|
49 |
|
|
50 |
// This is currently only place where we can modify CEikonEnv's instance of wgname
|
|
51 |
// that would override our custom settings in AppReady
|
|
52 |
void CAlfDocument::UpdateTaskNameL(CApaWindowGroupName* aWgName)
|
|
53 |
{
|
|
54 |
aWgName->SetHidden(ETrue); // hides us from FSW and protects us from OOM FW etc.
|
|
55 |
aWgName->SetSystem(ETrue); // Allow only application with PowerManagement cap to shut us down
|
|
56 |
aWgName->SetCaptionL(KSERVERNAME); // user friendly name of server
|
|
57 |
}
|