summaryrefslogtreecommitdiffstats
path: root/languages/sql/sqlsupport_part.h
diff options
context:
space:
mode:
Diffstat (limited to 'languages/sql/sqlsupport_part.h')
-rw-r--r--languages/sql/sqlsupport_part.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/languages/sql/sqlsupport_part.h b/languages/sql/sqlsupport_part.h
new file mode 100644
index 00000000..e9ad6dbd
--- /dev/null
+++ b/languages/sql/sqlsupport_part.h
@@ -0,0 +1,55 @@
+#ifndef __KDEVPART_SQLSUPPORT_H__
+#define __KDEVPART_SQLSUPPORT_H__
+
+#include <qguardedptr.h>
+#include <qstringlist.h>
+
+#include <kprocess.h>
+#include <kdialogbase.h>
+
+#include "kdevplugin.h"
+#include "kdevlanguagesupport.h"
+
+class SqlListAction;
+class SqlOutputWidget;
+class CodeModel;
+
+class SQLSupportPart : public KDevLanguageSupport
+{
+ Q_OBJECT
+
+public:
+
+ SQLSupportPart(QObject *parent, const char *name, const QStringList &);
+ virtual ~SQLSupportPart();
+
+ static QString cryptStr(const QString& aStr);
+ const QStringList& connections() const { return conNames; }
+
+
+protected:
+ virtual Features features();
+ virtual KMimeType::List mimeTypes();
+
+private slots:
+ void slotRun();
+ void projectConfigWidget(KDialogBase *dlg);
+ void projectOpened();
+ void projectClosed();
+ void savedFile(const KURL &fileName);
+ void addedFilesToProject(const QStringList &fileList);
+ void removedFilesFromProject(const QStringList &fileList);
+ void parse();
+ void loadConfig();
+ void activeConnectionChanged();
+
+private:
+ void clearConfig();
+ void updateCatalog();
+ SqlListAction* dbAction;
+ SqlOutputWidget* m_widget;
+ QStringList conNames;
+ CodeModel *m_store;
+};
+
+#endif