~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/sql/sqlsupport_part.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __KDEVPART_SQLSUPPORT_H__
 
2
#define __KDEVPART_SQLSUPPORT_H__
 
3
 
 
4
#include <qguardedptr.h>
 
5
#include <qstringlist.h>
 
6
 
 
7
#include <kprocess.h>
 
8
#include <kdialogbase.h>
 
9
 
 
10
#include "kdevplugin.h"
 
11
#include "kdevlanguagesupport.h"
 
12
 
 
13
class SqlListAction;
 
14
class SqlOutputWidget;
 
15
class CodeModel;
 
16
 
 
17
class SQLSupportPart : public KDevLanguageSupport
 
18
{
 
19
  Q_OBJECT
 
20
 
 
21
public:
 
22
 
 
23
    SQLSupportPart(QObject *parent, const char *name, const QStringList &);
 
24
    virtual ~SQLSupportPart();
 
25
 
 
26
    static QString cryptStr(const QString& aStr);
 
27
    const QStringList& connections() const { return conNames; }
 
28
 
 
29
 
 
30
protected:
 
31
    virtual Features features();
 
32
    virtual KMimeType::List mimeTypes();
 
33
 
 
34
private slots:
 
35
    void slotRun();
 
36
    void projectConfigWidget(KDialogBase *dlg);
 
37
    void projectOpened();
 
38
    void projectClosed();
 
39
    void savedFile(const KURL &fileName);
 
40
    void addedFilesToProject(const QStringList &fileList);
 
41
    void removedFilesFromProject(const QStringList &fileList);
 
42
    void parse();
 
43
    void loadConfig();
 
44
    void activeConnectionChanged();
 
45
 
 
46
private:
 
47
    void clearConfig();
 
48
    void updateCatalog();
 
49
    SqlListAction* dbAction;
 
50
    SqlOutputWidget* m_widget;
 
51
    QStringList conNames;
 
52
    CodeModel *m_store;
 
53
};
 
54
 
 
55
#endif