00001 /* 00002 * 00003 * D-Bus++ - C++ bindings for D-Bus 00004 * 00005 * Copyright (C) 2005-2007 Paolo Durante <shackan@gmail.com> 00006 * 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2.1 of the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 * 00022 */ 00023 00024 00025 #ifndef __DBUSXX_INTROSPECTION_H 00026 #define __DBUSXX_INTROSPECTION_H 00027 00028 #include "api.h" 00029 #include "interface.h" 00030 00031 namespace DBus { 00032 00033 struct DXXAPI IntrospectedArgument 00034 { 00035 const char *name; 00036 const char *type; 00037 const bool in; 00038 }; 00039 00040 struct DXXAPI IntrospectedMethod 00041 { 00042 const char *name; 00043 const IntrospectedArgument *args; 00044 }; 00045 00046 struct DXXAPI IntrospectedProperty 00047 { 00048 const char *name; 00049 const char *type; 00050 const bool read; 00051 const bool write; 00052 }; 00053 00054 struct DXXAPI IntrospectedInterface 00055 { 00056 const char *name; 00057 const IntrospectedMethod *methods; 00058 const IntrospectedMethod *signals; 00059 const IntrospectedProperty *properties; 00060 }; 00061 00062 class DXXAPI IntrospectableAdaptor : public InterfaceAdaptor 00063 { 00064 public: 00065 00066 IntrospectableAdaptor(); 00067 00068 Message Introspect(const CallMessage &); 00069 00070 protected: 00071 00072 IntrospectedInterface *const introspect() const; 00073 }; 00074 00075 class DXXAPI IntrospectableProxy : public InterfaceProxy 00076 { 00077 public: 00078 00079 IntrospectableProxy(); 00080 00081 std::string Introspect(); 00082 }; 00083 00084 } /* namespace DBus */ 00085 00086 #endif//__DBUSXX_INTROSPECTION_H