SourceForge Patches ID: 2701443 - Add methods to adjust timeout. Submitted: Oron Peled ( oron ) - 2009-03-21 23:27:55 CET
This commit is contained in:
parent
7889c46e57
commit
d083d07167
3 changed files with 25 additions and 4 deletions
|
@ -52,6 +52,10 @@ public:
|
|||
|
||||
inline Connection &conn();
|
||||
|
||||
void set_timeout(int new_timeout = -1);
|
||||
|
||||
inline int get_timeout() const;
|
||||
|
||||
private:
|
||||
|
||||
DXXAPILOCAL virtual bool handle_message(const Message &) = 0;
|
||||
|
@ -63,6 +67,7 @@ private:
|
|||
Connection _conn;
|
||||
DBus::Path _path;
|
||||
std::string _service;
|
||||
int _default_timeout;
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -83,6 +88,11 @@ const std::string &Object::service() const
|
|||
return _service;
|
||||
}
|
||||
|
||||
int Object::get_timeout() const
|
||||
{
|
||||
return _default_timeout;
|
||||
}
|
||||
|
||||
/*
|
||||
*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue