kexi

Kross::KexiApp::KexiAppMainWindow Class Reference

#include <kexiappmainwindow.h>

Public Member Functions

 KexiAppMainWindow (KexiMainWindow *mainwindow)
virtual ~KexiAppMainWindow ()
virtual const TQString getClassName () const
bool isConnected ()
Kross::Api::Object::Ptr getConnection ()
Kross::Api::List * getPartItems (const TQString &mimetype)
bool openPartItem (KexiAppPartItem *partitem)

Detailed Description

Class to handle Kexi's mainwindow instance.

Definition at line 43 of file kexiappmainwindow.h.

Constructor & Destructor Documentation

◆ KexiAppMainWindow()

KexiAppMainWindow::KexiAppMainWindow ( KexiMainWindow * mainwindow)

Constructor.

Parameters
mainwindowThe KexiMainWindow instance this class provides access to.

Definition at line 52 of file kexiappmainwindow.cpp.

◆ ~KexiAppMainWindow()

KexiAppMainWindow::~KexiAppMainWindow ( )
virtual

Destructor.

Definition at line 65 of file kexiappmainwindow.cpp.

Member Function Documentation

◆ getClassName()

const TQString KexiAppMainWindow::getClassName ( ) const
virtual
See also
Kross::Api::Object::getClassName

Definition at line 70 of file kexiappmainwindow.cpp.

◆ getConnection()

Kross::Api::Object::Ptr KexiAppMainWindow::getConnection ( )
Returns
the Kross::KexiDB::KexiDBConnection object that belongs to the opened project or throw an exception if there was no project opened (no connection established). Cause the KexiApp-module doesn't know anything about the KexiDB-module we have to use the base-class Kross::Api::Object to pass the Kross::KexiDB::KexiDBConnection object around.

Definition at line 80 of file kexiappmainwindow.cpp.

◆ getPartItems()

Kross::Api::List * KexiAppMainWindow::getPartItems ( const TQString & mimetype)
Returns
a list of KexiAppPartItem objects for the defined mimetype string.

Definition at line 91 of file kexiappmainwindow.cpp.

◆ isConnected()

bool KexiAppMainWindow::isConnected ( )
Returns
true if Kexi is connected with a project else false is returned.

Definition at line 75 of file kexiappmainwindow.cpp.

◆ openPartItem()

bool KexiAppMainWindow::openPartItem ( KexiAppPartItem * partitem)

Try to open the defined KexiAppPartItem and.

Returns
true on success else false.

Definition at line 99 of file kexiappmainwindow.cpp.


The documentation for this class was generated from the following files: