--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/uiacceltk/hitchcock/ServerInterface/src/alfdocument.cpp Tue Feb 02 07:56:43 2010 +0200
@@ -0,0 +1,56 @@
+/*
+* 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
+ }