browserui/browser/BrowserAppSrc/BrowserSoftkeysObserver.cpp
branchRCL_3
changeset 48 8e6fa1719340
parent 0 84ad3b177aa3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/browserui/browser/BrowserAppSrc/BrowserSoftkeysObserver.cpp	Wed Sep 01 12:31:04 2010 +0100
@@ -0,0 +1,90 @@
+/*
+* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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:  Handle special load events such as network connection, deal with non-http or non-html requests
+*
+*/
+
+
+
+// INCLUDE FILES
+
+#include "BrowserSoftkeysObserver.h"
+#include "BrowserWindow.h"
+#include "BrowserWindowManager.h"
+#include "BrowserContentView.h"
+
+// ---------------------------------------------------------
+// CBrowserSoftkeysObserver::NewL()
+// ---------------------------------------------------------
+//
+CBrowserSoftkeysObserver* CBrowserSoftkeysObserver::NewL(
+        CBrowserWindow& aWindow )
+    {
+    CBrowserSoftkeysObserver* self = new (ELeave)
+        CBrowserSoftkeysObserver( aWindow );
+    CleanupStack::PushL( self );
+    self->ConstructL();
+    CleanupStack::Pop();    // self
+    return self;
+    }
+
+// ---------------------------------------------------------
+// CBrowserSoftkeysObserver::~CBrowserSoftkeysObserver()
+// ---------------------------------------------------------
+//
+CBrowserSoftkeysObserver::~CBrowserSoftkeysObserver()
+    {
+    }
+
+// ---------------------------------------------------------
+// CBrowserSoftkeysObserver::UpdateSoftkeyL()
+// ---------------------------------------------------------
+//
+void CBrowserSoftkeysObserver::UpdateSoftkeyL(
+        TBrCtlKeySoftkey /* aKeySoftkey */,
+        const TDesC& /* aLabel */,
+        TUint32 /* aCommandId */,
+        TBrCtlSoftkeyChangeReason /* aReason */ )
+    {
+    // update only the active window's softkeys
+    if( iWindow->IsWindowActive() )
+        {
+        CBrowserContentView* cv = iWindow->WindowMgr().ContentView();
+        if( cv )
+            {
+            cv->UpdateCbaL();
+            }
+        }
+    }
+
+// ---------------------------------------------------------
+// CBrowserSoftkeysObserver::CBrowserSoftkeysObserver()
+// ---------------------------------------------------------
+//
+CBrowserSoftkeysObserver::CBrowserSoftkeysObserver(
+        CBrowserWindow& aWindow ) :
+    iWindow( &aWindow )
+    {
+    }
+
+// ---------------------------------------------------------
+// CBrowserSoftkeysObserver::ConstructL()
+// ---------------------------------------------------------
+//
+void CBrowserSoftkeysObserver::ConstructL()
+    {
+    }
+
+// End of File
+