diff options
| author | Nikola Pajkovsky <npajkovs@redhat.com> | 2009-09-17 12:16:48 +0200 |
|---|---|---|
| committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2009-09-17 12:16:48 +0200 |
| commit | 5a86973be999b43581e814412f0d52885abac5d4 (patch) | |
| tree | 1ddbb5af77013dec00b4234ee583aff41eb43cae /lib/Utils/DBusClientProxy.cpp | |
| parent | 9a742f012b9154c34d046dc67ba9ad904512ab60 (diff) | |
| download | abrt-5a86973be999b43581e814412f0d52885abac5d4.tar.gz abrt-5a86973be999b43581e814412f0d52885abac5d4.tar.xz abrt-5a86973be999b43581e814412f0d52885abac5d4.zip | |
add dbus signalization when quota exceeded
Diffstat (limited to 'lib/Utils/DBusClientProxy.cpp')
| -rw-r--r-- | lib/Utils/DBusClientProxy.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Utils/DBusClientProxy.cpp b/lib/Utils/DBusClientProxy.cpp index ccb48d5..afa89fc 100644 --- a/lib/Utils/DBusClientProxy.cpp +++ b/lib/Utils/DBusClientProxy.cpp @@ -108,6 +108,7 @@ CDBusClient_proxy::CDBusClient_proxy() { connect_signal(CDBusClient_proxy, Crash, _Crash_stub); connect_signal(CDBusClient_proxy, JobDone, _JobDone_stub); + connect_signal(CDBusClient_proxy, QuotaExceed, _QuotaExceed_stub); m_sConnName = ""; } @@ -118,6 +119,7 @@ CDBusClient_proxy::CDBusClient_proxy(::DBus::Connection &pConnection) //# define connect_signal(interface, signal, callback) connect_signal(CDBusClient_proxy, Crash, _Crash_stub); connect_signal(CDBusClient_proxy, JobDone, _JobDone_stub); + connect_signal(CDBusClient_proxy, QuotaExceed, _QuotaExceed_stub); m_sConnName = pConnection.unique_name(); } @@ -213,6 +215,9 @@ void CDBusClient_proxy::Crash(const std::string& progname, const std::string& ui { } +void CDBusClient_proxy::QuotaExceed(const char* str) +{ +} /* private: */ /* unmarshalers (to unpack the DBus message before calling the actual signal handler) @@ -237,3 +242,11 @@ void CDBusClient_proxy::_JobDone_stub(const ::DBus::SignalMessage &sig) g_main_loop_quit(gloop); } } + +void CDBusClient_proxy::_QuotaExceed_stub(const ::DBus::SignalMessage &sig) +{ + DBus::MessageIter ri = sig.reader(); + std::string str; + ri >> str; + QuotaExceed(str.c_str()); +} |
