summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-07-05 02:17:44 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-07-05 02:17:44 +0800
commit866eb0e31eb73ee450b6db8e8a5ffd7d43a199e6 (patch)
tree69088d8166550648679c1ca784eda4ce8877f115 /include
parent249705c4a1b61bf9e250321e5b029f6a434e7eea (diff)
downloadmobileperf-866eb0e31eb73ee450b6db8e8a5ffd7d43a199e6.tar.gz
mobileperf-866eb0e31eb73ee450b6db8e8a5ffd7d43a199e6.tar.bz2
Break the dependency between CompTimeoutSource and CompTimer
Diffstat (limited to 'include')
-rw-r--r--include/core/timer.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/include/core/timer.h b/include/core/timer.h
index d387165..328754a 100644
--- a/include/core/timer.h
+++ b/include/core/timer.h
@@ -67,6 +67,21 @@ class CompTimer {
void setExpiryTimes (unsigned int min, unsigned int max = 0);
/**
+ * FIXME: Remove from the public API
+ */
+ void decrement (unsigned int diff);
+
+ /**
+ * FIXME: Remove from the public API
+ */
+ void setActive (bool active);
+
+ /**
+ * FIXME: Remove from the public API
+ */
+ bool triggerCallback ();
+
+ /**
* Sets the timing durations of this timer.
*/
void setTimes (unsigned int min, unsigned int max = 0);
@@ -102,9 +117,6 @@ class CompTimer {
*/
void stop ();
- friend class CompTimeoutSource;
- friend class TimeoutHandler;
-
private:
PrivateTimer *priv;