KDevelop API Documentation

SQLSupportPart Class Reference

This is a SQL support plugin. More...

#include <sqlsupport_part.h>

Inheritance diagram for SQLSupportPart:

Inheritance graph
[legend]
Collaboration diagram for SQLSupportPart:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SQLSupportPart (QObject *parent, const char *name, const QStringList &)
virtual ~SQLSupportPart ()
const QStringListconnections () const

Static Public Member Functions

QString cryptStr (const QString &aStr)

Protected Member Functions

virtual Features features ()
 Returns the feature set of the language.
virtual KMimeType::List mimeTypes ()
 Returns a typical mimetype list for the support language should be configurable in the languagesupport dialog.

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 Member Functions

void clearConfig ()
void updateCatalog ()

Private Attributes

SqlListActiondbAction
SqlOutputWidgetm_widget
QStringList conNames
CodeModelm_store

Detailed Description

This is a SQL support plugin.

Author(s):
Harald Fernengel

Maintainer(s):
Harald Fernengel

Feature(s):
SQL language support

Consult Programming Languages Support Status for a up to date features/status of this programming language support part.

Bug:
Describe a the 1st bug that you know of, but probably hasn't been reported yet. ..

Describe a the nth bug that you know of, but probably hasn't been reported yet.

Requirement(s):
Describe a the 1st requirement of your part.

Describe a the 2nd requirement of your part. ...

Describe a the nth requirement of your part.

Todo:
Describe a the 1st TODO of your part.

Describe a the 2nd TODO of your part. ...

Describe a the nth TODO of your part.

F.A.Q.:
First frequenly asked question about your part ? Answer.

Second frequenly asked question about your part ? Answer. ...

Last frequenly asked question about your part ? Answer.

Note:
First note text.

Second note text. ...

Last note text.

Warning:
First warning text.

Second warning text. ...

Last warning text.

Definition at line 17 of file sqlsupport_part.h.


Constructor & Destructor Documentation

SQLSupportPart::SQLSupportPart QObject parent,
const char *  name,
const QStringList
 

SQLSupportPart::~SQLSupportPart  )  [virtual]
 

Definition at line 63 of file sqlsupport_part.cpp.

References m_widget, KDevPlugin::mainWindow(), and KDevMainWindow::removeView().


Member Function Documentation

void SQLSupportPart::activeConnectionChanged  )  [private, slot]
 

Definition at line 78 of file sqlsupport_part.cpp.

References updateCatalog().

void SQLSupportPart::addedFilesToProject const QStringList fileList  )  [private, slot]
 

Definition at line 238 of file sqlsupport_part.cpp.

References KDevLanguageSupport::updatedSourceInfo().

Referenced by projectOpened().

void SQLSupportPart::clearConfig  )  [private]
 

Definition at line 83 of file sqlsupport_part.cpp.

References conNames, dbAction, kdDebug(), and SqlListAction::refresh().

Referenced by loadConfig(), and projectClosed().

const QStringList& SQLSupportPart::connections  )  const [inline]
 

Definition at line 27 of file sqlsupport_part.h.

Referenced by SqlListAction::activated(), SqlListAction::currentConnectionName(), SqlListAction::refresh(), and SqlListAction::setCurrentConnectionName().

QString SQLSupportPart::cryptStr const QString aStr  )  [static]
 

Definition at line 69 of file sqlsupport_part.cpp.

Referenced by loadConfig().

KDevLanguageSupport::Features SQLSupportPart::features  )  [protected, virtual]
 

Returns the feature set of the language.

This is e.g. used by the class view to decide which organizer items to display and which not.

Reimplemented from KDevLanguageSupport.

Definition at line 269 of file sqlsupport_part.cpp.

References KDevLanguageSupport::Features.

void SQLSupportPart::loadConfig  )  [private, slot]
 

Definition at line 98 of file sqlsupport_part.cpp.

References clearConfig(), conNames, cryptStr(), dbAction, KDevPlugin::projectDom(), DomUtil::readListEntry(), and SqlListAction::refresh().

Referenced by projectConfigWidget(), and projectOpened().

KMimeType::List SQLSupportPart::mimeTypes  )  [protected, virtual]
 

Returns a typical mimetype list for the support language should be configurable in the languagesupport dialog.

Reimplemented from KDevLanguageSupport.

Definition at line 274 of file sqlsupport_part.cpp.

References KMimeType::List, KMimeType::mimeType(), and KMimeType::Ptr.

void SQLSupportPart::parse  )  [private, slot]
 

Definition at line 193 of file sqlsupport_part.cpp.

Referenced by projectOpened().

void SQLSupportPart::projectClosed  )  [private, slot]
 

Definition at line 157 of file sqlsupport_part.cpp.

References clearConfig().

void SQLSupportPart::projectConfigWidget KDialogBase dlg  )  [private, slot]
 

Definition at line 132 of file sqlsupport_part.cpp.

References KDialogBase::addVBoxPage(), loadConfig(), SqlConfigWidget::loadConfig(), KDevPlugin::projectDom(), and SqlConfigWidget::setProjectDom().

void SQLSupportPart::projectOpened  )  [private, slot]
 

Definition at line 142 of file sqlsupport_part.cpp.

References addedFilesToProject(), loadConfig(), parse(), KDevPlugin::project(), and removedFilesFromProject().

void SQLSupportPart::removedFilesFromProject const QStringList fileList  )  [private, slot]
 

Definition at line 250 of file sqlsupport_part.cpp.

References KDevLanguageSupport::updatedSourceInfo().

Referenced by projectOpened().

void SQLSupportPart::savedFile const KURL fileName  )  [private, slot]
 

Definition at line 261 of file sqlsupport_part.cpp.

References KDevProject::allFiles(), Structure::length(), KURL::path(), and KDevPlugin::project().

void SQLSupportPart::slotRun  )  [private, slot]
 

Definition at line 162 of file sqlsupport_part.cpp.

References KParts::PartManager::activePart(), SqlListAction::currentConnectionName(), dbAction, m_widget, KDevPlugin::mainWindow(), KDevPlugin::partController(), KDevMainWindow::raiseView(), SqlOutputWidget::showQuery(), KMessageBox::sorry(), and KTextEditor::EditInterface::text().

void SQLSupportPart::updateCatalog  )  [private]
 

Definition at line 198 of file sqlsupport_part.cpp.

References CodeModel::addFile(), ClassDom, KDevPlugin::codeModel(), CodeModel::create(), SqlListAction::currentConnectionName(), dbAction, FileDom, FunctionDom, KDevPlugin::project(), KDevLanguageSupport::updatedSourceInfo(), and CodeModel::wipeout().

Referenced by activeConnectionChanged().


Member Data Documentation

QStringList SQLSupportPart::conNames [private]
 

Definition at line 51 of file sqlsupport_part.h.

Referenced by clearConfig(), and loadConfig().

SqlListAction* SQLSupportPart::dbAction [private]
 

Definition at line 49 of file sqlsupport_part.h.

Referenced by clearConfig(), loadConfig(), slotRun(), and updateCatalog().

CodeModel* SQLSupportPart::m_store [private]
 

Definition at line 52 of file sqlsupport_part.h.

SqlOutputWidget* SQLSupportPart::m_widget [private]
 

Definition at line 50 of file sqlsupport_part.h.

Referenced by slotRun(), and ~SQLSupportPart().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:30:13 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003