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 /src/Applet/Applet.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 'src/Applet/Applet.cpp')
| -rw-r--r-- | src/Applet/Applet.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Applet/Applet.cpp b/src/Applet/Applet.cpp index 41fc3b7..cf58c7d 100644 --- a/src/Applet/Applet.cpp +++ b/src/Applet/Applet.cpp @@ -52,6 +52,13 @@ crash_notify_cb(const char* progname) applet->CrashNotify(message, progname); } +static void +quota_exceed_cb(const char* str) +{ + applet->ShowIcon(); + applet->CrashNotify("%s", str); +} + int main(int argc, char **argv) { setlocale(LC_ALL,""); @@ -91,6 +98,7 @@ int main(int argc, char **argv) DBus::Connection conn = DBus::Connection::SystemBus(); applet = new CApplet(conn, session, CC_DBUS_PATH, CC_DBUS_NAME); applet->ConnectCrashHandler(crash_notify_cb); + applet->ConnectQuotaExceedHandler(quota_exceed_cb); if(!conn.has_name(CC_DBUS_NAME)) { std::cout << _("ABRT service is not running") << std::endl; |
