Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: include/dbus-c++/object.h

Issue 6250197: Allow explicit object registration. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/dbus-cplusplus.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/object.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/dbus-c++/object.h
diff --git a/include/dbus-c++/object.h b/include/dbus-c++/object.h
index 962bf77d38f847b838dc4e791c11454b98232f89..4e8ea6dd241bb0abe2a42bb5451d110bc250ab60 100644
--- a/include/dbus-c++/object.h
+++ b/include/dbus-c++/object.h
@@ -52,11 +52,14 @@ public:
inline Connection &conn();
+protected:
+ virtual void register_obj() = 0;
Jason Glasgow 2011/02/07 20:00:48 As discussed, exposing register_obj() does not rea
+ virtual void unregister_obj() = 0;
+ virtual bool is_registered() = 0;
+
private:
DXXAPILOCAL virtual bool handle_message(const Message &) = 0;
- DXXAPILOCAL virtual void register_obj() = 0;
- DXXAPILOCAL virtual void unregister_obj() = 0;
private:
@@ -151,15 +154,16 @@ protected:
Continuation *find_continuation(const Tag *tag);
+ virtual void register_obj();
+ virtual void unregister_obj();
+ virtual bool is_registered();
+
private:
void _emit_signal(SignalMessage &);
bool handle_message(const Message &);
- void register_obj();
- void unregister_obj();
-
typedef std::map<const Tag *, Continuation *> ContinuationMap;
ContinuationMap _continuations;
@@ -206,8 +210,10 @@ private:
bool handle_message(const Message &);
- void register_obj();
- void unregister_obj();
+protected:
+ virtual void register_obj();
+ virtual void unregister_obj();
+ virtual bool is_registered();
private:
« no previous file with comments | « no previous file | src/object.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698