diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-17 11:43:35 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-17 11:43:35 +0200 |
| commit | 4f1d1ad7c3105fc8ef8408465258c27c943b86cd (patch) | |
| tree | f60c43528aba4c8d8cd4372171b1943a59e7f1bc /lib/Utils/DBusClientProxy.h | |
| parent | 303d1780ffcaa0124ed9e641403f2618f300076e (diff) | |
Move lib/Utils/DBusClientProxy.* to src/Applet/; do not link rpm to libABRTUtils
As a result, we can drop these libs from libABRTUtils:
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007ff8934ef000)
libdb-4.7.so => /lib64/libdb-4.7.so (0x00007ff8921ae000)
libdbus-c++-1.so.0 => /usr/lib64/libdbus-c++-1.so.0 (0x00007ff895276000)
libelf.so.1 => /usr/lib64/libelf.so.1 (0x00007ff8930c5000)
liblua-5.1.so => /usr/lib64/liblua-5.1.so (0x00007ff892c7a000)
liblzma.so.0 => /usr/lib64/liblzma.so.0 (0x00007ff892ea5000)
libnspr4.so => /lib64/libnspr4.so (0x00007ff890ec2000)
libnss3.so => /lib64/libnss3.so (0x00007ff892948000)
libnssutil3.so => /lib64/libnssutil3.so (0x00007ff891505000)
libplc4.so => /lib64/libplc4.so (0x00007ff891300000)
libplds4.so => /lib64/libplds4.so (0x00007ff8910fd000)
libpopt.so.0 => /lib64/libpopt.so.0 (0x00007ff89273f000)
librpmio.so.0 => /usr/lib64/librpmio.so.0 (0x00007ff8954a8000)
librpm.so.0 => /usr/lib64/librpm.so.0 (0x00007ff8956d9000)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Utils/DBusClientProxy.h')
| -rw-r--r-- | lib/Utils/DBusClientProxy.h | 108 |
1 files changed, 0 insertions, 108 deletions
diff --git a/lib/Utils/DBusClientProxy.h b/lib/Utils/DBusClientProxy.h deleted file mode 100644 index e43805b..0000000 --- a/lib/Utils/DBusClientProxy.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - Copyright (C) 2009 Jiri Moskovcak (jmoskovc@redhat.com) - Copyright (C) 2009 RedHat inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ -#ifndef DBUSCLIENTPROXY_H_ -#define DBUSCLIENTPROXY_H_ - -#include <dbus-c++/dbus.h> -#include <dbus-c++/glib-integration.h> -#include "DBusCommon.h" - -#define ABRT_NOT_RUNNING 0 -#define ABRT_RUNNING 1 - -namespace org { -namespace freedesktop { -namespace DBus { - -class DaemonWatcher_proxy -: public ::DBus::InterfaceProxy -{ -private: - void *m_pStateChangeHandler_cb_data; - void (*m_pStateChangeHandler)(bool running, void* data); - -public: - DaemonWatcher_proxy(); - void ConnectStateChangeHandler(void (*pStateChangeHandler)(bool running, void* data), void *cb_data); - -private: - /* unmarshalers (to unpack the DBus message before calling the actual signal handler) - */ - void _DaemonStateChanged(const ::DBus::SignalMessage &sig); -}; - -} } } - - -class DaemonWatcher -: public org::freedesktop::DBus::DaemonWatcher_proxy, - public DBus::IntrospectableProxy, - public DBus::ObjectProxy -{ -public: - - DaemonWatcher(DBus::Connection &connection, const char *path, const char *name); - ~DaemonWatcher(); -}; - - -class CDBusClient_proxy -: public DBus::InterfaceProxy -{ -private: - bool m_bJobDone; - uint64_t m_iPendingJobID; - GMainLoop *gloop; - std::string m_sConnName; - -public: - CDBusClient_proxy(); - CDBusClient_proxy(::DBus::Connection &pConnection); - -public: - /* methods exported by this interface, - * this functions will invoke the corresponding methods on the remote objects - */ - /* - < - <m_sUUID;m_sUID;m_sCount;m_sExecutable;m_sPackage> - <m_sUUID;m_sUID;m_sCount;m_sExecutable;m_sPackage> - <m_sUUID;m_sUID;m_sCount;m_sExecutable;m_sPackage> - ... - > - */ - vector_crash_infos_t GetCrashInfos(); - bool DeleteDebugDump(const std::string& pUUID); - map_crash_report_t CreateReport(const std::string& pUUID); - void Report(const map_crash_report_t& pReport); - map_crash_report_t GetJobResult(uint64_t pJobID); - -public: - /* signal handlers for this interface - */ - virtual void Crash(const std::string& progname, const std::string& uid); - -private: - /* unmarshalers (to unpack the DBus message before calling the actual signal handler) - */ - void _Crash_stub(const ::DBus::SignalMessage &sig); - void _JobDone_stub(const ::DBus::SignalMessage &sig); -}; - -#endif |
