summaryrefslogtreecommitdiff
path: root/gnss/Agps.h
diff options
context:
space:
mode:
authorSaurabh Srivastava <ssrivast@codeaurora.org>2017-04-28 15:31:33 +0530
committerSaurabh Srivastava <ssrivast@codeaurora.org>2017-05-29 18:45:54 +0530
commit876db406414d985d41d582f1ec4ad97b7c5a8313 (patch)
tree0b82441adcfbe0899dbdca034a4b7073fcdcc060 /gnss/Agps.h
parent25008877c3e95eac0846d461c196634ad639fd47 (diff)
downloadgps-876db406414d985d41d582f1ec4ad97b7c5a8313.tar.gz
Updating AgpsSubscriber constructor
Updating AgpsSubscriber constructor to ensure clone operation copies the entire state Change-Id: Id016994efd8cb1140af8d5ee05eace95922f246b CRs-Fixed: 2039863
Diffstat (limited to 'gnss/Agps.h')
-rw-r--r--gnss/Agps.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/gnss/Agps.h b/gnss/Agps.h
index 1e95a42..d3fc362 100644
--- a/gnss/Agps.h
+++ b/gnss/Agps.h
@@ -173,16 +173,19 @@ public:
bool mWaitForCloseComplete;
bool mIsInactive;
- inline AgpsSubscriber(int connHandle) :
- mConnHandle(connHandle), mWaitForCloseComplete(false),
- mIsInactive(false) {}
+ inline AgpsSubscriber(
+ int connHandle, bool waitForCloseComplete, bool isInactive) :
+ mConnHandle(connHandle),
+ mWaitForCloseComplete(waitForCloseComplete),
+ mIsInactive(isInactive) {}
inline virtual ~AgpsSubscriber() {}
inline virtual bool equals(const AgpsSubscriber *s) const
{ return (mConnHandle == s->mConnHandle); }
inline virtual AgpsSubscriber* clone()
- { return new AgpsSubscriber(mConnHandle); }
+ { return new AgpsSubscriber(
+ mConnHandle, mWaitForCloseComplete, mIsInactive); }
};
/* AGPS STATE MACHINE */