--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/idlefw/plugins/devicestatus/inc/aivhzpublisher.h Wed Sep 01 12:22:09 2010 +0100
@@ -0,0 +1,108 @@
+/*
+* Copyright (c) 2005-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: Viag Home Zone (VHZ) publisher.
+*
+*/
+
+
+#ifndef C_AIVHZPUBLISHER_H
+#define C_AIVHZPUBLISHER_H
+
+// System includes
+#include <e32base.h>
+#include <aidevicestatuscontentmodel.h>
+
+// User includes
+#include "aidevicestatuspublisher.h"
+#include "ainetworkinfoobserver.h"
+
+// Forward declarations
+class MAiDeviceStatusContentObserver;
+class CHsContentPublisher;
+class CAiNetworkInfoListener;
+
+/**
+ * @ingroup group_devicestatusplugin
+ *
+ * Viag Home Zone (VHZ) publisher.
+ *
+ * Observes network info changes and publishes zone name
+ * when phone arrives to home or city zone.
+ *
+ * @since S60 3.2
+ */
+NONSHARABLE_CLASS( CAiVHZPublisher ) : public CBase,
+ public MAiDeviceStatusPublisher,
+ public MAiNetworkInfoObserver
+ {
+public:
+
+ static CAiVHZPublisher* NewL();
+
+ virtual ~CAiVHZPublisher();
+
+protected:
+
+// from base class MAiDeviceStatusPublisher
+
+ void ResumeL();
+ void Subscribe( MAiContentObserver& aObserver,
+ CHsContentPublisher& aExtension,
+ MAiPublishPrioritizer& aPrioritizer,
+ MAiPublisherBroadcaster& aBroadcaster );
+ void RefreshL( TBool aClean );
+ TBool RefreshL( TInt aContentId, TBool aClean );
+
+//from base class MAiNetworkInfoObserver
+
+ void HandleNetworkInfoChange( const MNWMessageObserver::TNWMessages& aMessage,
+ const TNWInfo& aInfo,
+ const TBool aShowOpInd );
+
+
+private:
+
+ CAiVHZPublisher();
+
+ void ConstructL();
+
+private: // data
+
+ /**
+ * Content observer.
+ * Not own.
+ */
+ MAiContentObserver* iContentObserver;
+
+ /**
+ * Property extension.
+ * Not own.
+ */
+ CHsContentPublisher* iExtension;
+
+ /**
+ * Network info listener.
+ * Not own.
+ */
+ CAiNetworkInfoListener* iListener;
+
+ /**
+ * Flag to indiate whether vhz is in navi or mainpane.
+ */
+ TBool iVhzInMainpane;
+
+ };
+
+
+#endif // C_AIVHZPUBLISHER_H