KDevelop API Documentation

sqlactions.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Harald Fernengel                                *
00003  *   harry@kdevelop.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #ifndef _SQLACTION_H_
00013 #define _SQLACTION_H_
00014 
00015 #include <kdeversion.h>
00016 #include <kaction.h>
00017 
00018 //only for KDE < 3.1
00019 #if KDE_VERSION <= 305
00020 #include <kdevwidgetaction.h>
00021 using namespace KDevCompat;
00022 #endif
00023 
00024 class SQLSupportPart;
00025 class KComboBox;
00026 
00027 class SqlListAction : public KWidgetAction
00028 {
00029     Q_OBJECT
00030 public:
00031     SqlListAction( SQLSupportPart *part, const QString &text, const KShortcut& cut,
00032                      const QObject *receiver, const char *slot,
00033                      KActionCollection *parent, const char *name );
00034     void setCurrentConnectionName(const QString &name);
00035     QString currentConnectionName() const;
00036     void refresh();
00037 
00038 private slots:
00039     void activated(int);
00040 
00041 private:
00042     SQLSupportPart *m_part;
00043     KComboBox* m_combo;
00044 };
00045 
00046 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:34 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003