--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/locationmgmt/networklocationmgr/t_lbsDummygateway/inc/netlocationchannel.h Tue Feb 02 01:50:39 2010 +0200
@@ -0,0 +1,88 @@
+// Copyright (c) 2006-2009 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:
+// Definition of network location channel component.
+//
+//
+
+/**
+ @file
+ @internalTechnology
+ @released
+*/
+
+#ifndef NETLOCATIONCHANNEL_H_
+#define NETLOCATIONCHANNEL_H_
+
+#include "lbscommoninternaldatatypes.h"
+#include "lbsngnlmint.h"
+#include "lbsreffnpint.h"
+#include <lbs/lbsextendedsatellite.h>
+
+
+class TPositionInfoBase;
+class TLbsNetLocMsgBase;
+
+//
+// Network Location Channel
+//
+
+typedef TInt TLbsNetworkLocationRequestBase;
+
+/** Observer for the Network Location interface.
+*/
+class MNetworkLocationObserver
+ {
+public:
+ virtual void ProcessNetworkLocationMessage(const TLbsNetLocMsgBase& aMessage) = 0;
+ };
+
+/** Manager for the Network Location interface.
+
+This class handles sending and receiving messages on the
+Network Location interface. It is implemented as an active object
+to allow it to asnychronously wait for messages to arrive. Sending
+is synchronous.
+*/
+class CNetworkLocationChannel : public CActive
+ {
+public:
+ static CNetworkLocationChannel* NewL(MNetworkLocationObserver& aObserver);
+ ~CNetworkLocationChannel();
+
+ // from CActive
+ void RunL();
+ void DoCancel();
+ TInt RunError(TInt aError);
+
+ const TPositionInfoBase & GetLastReferencePosition();
+ void SetReferencePosition(TLbsNetSessionIdInt& aSessionId,
+ const TPositionInfoBase& aLocation);
+
+ void SendNetworkLocationMessage(const TLbsNetLocMsgBase& aMessage);
+
+private:
+ CNetworkLocationChannel(MNetworkLocationObserver& aObserver);
+ void ConstructL();
+
+ void NotifyNetworkLocationRequestUpdate();
+
+private:
+ MNetworkLocationObserver& iObserver;
+ RLbsNetworkLocationRequests iLocationRequests;
+ RLbsNetworkLocationResponses iLocationResponses;
+ RLbsNetworkPositionUpdates iPositionUpdates;
+ TPositionExtendedSatelliteInfo iRefPosInfo;
+ };
+
+#endif // NETLOCATIONCHANNEL_H_