00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __KoApplicationAdaptor_h__
00022 #define __KoApplicationAdaptor_h__
00023
00024 #include <QtCore/QObject>
00025 #include <QtDBus/QtDBus>
00026 class QByteArray;
00027 template<class T> class QList;
00028 template<class Key, class Value> class QMap;
00029 class QString;
00030 class QStringList;
00031
00032
00036 class KoApplicationAdaptor : public QDBusAbstractAdaptor
00037 {
00038 Q_OBJECT
00039 Q_CLASSINFO("D-Bus Interface", "org.kde.koffice.application")
00040 public:
00041 KoApplicationAdaptor(QObject *parent);
00042 virtual ~KoApplicationAdaptor();
00043
00044 public Q_SLOTS:
00049 Q_SCRIPTABLE QString createDocument( const QString &nativeFormat );
00050
00055 Q_SCRIPTABLE QStringList getDocuments();
00056
00062 Q_SCRIPTABLE QStringList getViews();
00063
00068 Q_SCRIPTABLE QStringList getWindows();
00069 };
00070
00071 #endif
00072