File indexing completed on 2024-04-21 15:55:38
0001 /******************************************************************************************** 0002 begin : sam sep 28 2002 0003 edit : 12/10/2007 0004 copyright : (C) 2002 - 2003 by Pascal Brachet (Jeroen.Wijnhout@kdemail.net) 0005 2003 by Jeroen Wijnhout 0006 2007-2008 by Thomas Braun 0007 2008 by Michel Ludwig (michel.ludwig@kdemail.net) 0008 ********************************************************************************************/ 0009 0010 /*************************************************************************** 0011 * * 0012 * This program is free software; you can redistribute it and/or modify * 0013 * it under the terms of the GNU General Public License as published by * 0014 * the Free Software Foundation; either version 2 of the License, or * 0015 * (at your option) any later version. * 0016 * * 0017 ***************************************************************************/ 0018 #ifndef KILEAPPIFACE_H 0019 #define KILEAPPIFACE_H 0020 0021 #include <QObject> 0022 0023 /* 0024 * This files servers as our source for the xml file net.sourceforge.kile.main.xml 0025 * After changing this file execute 0026 * qdbuscpp2xml -a kileappIface.h -o net.sourceforge.kile.main.xml 0027 * 0028 * This API is subject to change at anytime, however it will be finalized before the next major release 0029 * 0030 */ 0031 0032 class MainAdaptor : public QDBusAbstractAdaptor 0033 { 0034 Q_OBJECT 0035 Q_CLASSINFO("D-Bus Interface", "net.sourceforge.kile.main") 0036 0037 public Q_SLOTS: 0038 Q_SCRIPTABLE void openDocument(const QString &path); 0039 Q_SCRIPTABLE void closeDocument(); 0040 0041 Q_SCRIPTABLE void openProject(const QString &path); 0042 0043 Q_SCRIPTABLE void insertText(const QString &path); 0044 Q_SCRIPTABLE void setLine(const QString& line); 0045 Q_SCRIPTABLE void setActive(); 0046 0047 Q_SCRIPTABLE int runTool(const QString &tool); 0048 Q_SCRIPTABLE int runToolWithConfig(const QString &tool, const QString & config); 0049 }; 0050 0051 #endif