summaryrefslogtreecommitdiff
path: root/core/LocAdapterBase.h
diff options
context:
space:
mode:
authorBhavna Sharma <sbhavna@codeaurora.org>2014-01-24 11:35:16 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-01-27 20:41:56 -0800
commitdd90495f7b405f4fb258991ca6559a55c30e5531 (patch)
tree862b93fa8cbd5e37a0933bd2317e6c551b5d52ce /core/LocAdapterBase.h
parent3cf2a8f3b7f4c006c57692ac842e4808996a12fd (diff)
downloadgps-dd90495f7b405f4fb258991ca6559a55c30e5531.tar.gz
Add a new LocAdapterProxyBase class
LocAdapterProxyBase bridges the LocAdapterBase and IzatAdapterBase to communicate SSR events. CRs-Fixed: 598430 Change-Id: I8aa54f207e474974fa6fd5330c1545f94720a5cb
Diffstat (limited to 'core/LocAdapterBase.h')
-rw-r--r--core/LocAdapterBase.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/core/LocAdapterBase.h b/core/LocAdapterBase.h
index 8222b24..4e6ff24 100644
--- a/core/LocAdapterBase.h
+++ b/core/LocAdapterBase.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2014, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -35,19 +35,22 @@
namespace loc_core {
+class LocAdapterProxyBase;
+
class LocAdapterBase {
protected:
const LOC_API_ADAPTER_EVENT_MASK_T mEvtMask;
ContextBase* mContext;
LocApiBase* mLocApi;
+ LocAdapterProxyBase* mLocAdapterProxyBase;
const MsgTask* mMsgTask;
inline LocAdapterBase(const MsgTask* msgTask) :
- mEvtMask(0), mContext(NULL), mLocApi(NULL), mMsgTask(msgTask) {}
+ mEvtMask(0), mContext(NULL), mLocApi(NULL), mLocAdapterProxyBase(NULL), mMsgTask(msgTask) {}
public:
inline virtual ~LocAdapterBase() { mLocApi->removeAdapter(this); }
LocAdapterBase(const LOC_API_ADAPTER_EVENT_MASK_T mask,
- ContextBase* context);
+ ContextBase* context, LocAdapterProxyBase *adapterProxyBase = NULL);
inline LOC_API_ADAPTER_EVENT_MASK_T
checkMask(LOC_API_ADAPTER_EVENT_MASK_T mask) const {
return mEvtMask & mask;
@@ -68,7 +71,7 @@ public:
// This will be overridden by the individual adapters
// if necessary.
inline virtual void setUlpProxy(UlpProxyBase* ulp) {}
- inline virtual void handleEngineUpEvent() {}
+ virtual void handleEngineUpEvent();
virtual void handleEngineDownEvent();
inline virtual void setPositionModeInt(LocPosMode& posMode) {}
virtual void startFixInt() {}