Kexi Project Data from .kexi file

Jaroslaw Staniek staniek at kde.org
Mon Apr 3 12:13:50 UTC 2017


Adam,
Sorry for delay, I was a bit outside this weekend.

There's KexiMainWindow::openProject() and then as you supposed:
-> createKexiProjectObject(projectData)
  -> new KexiProject(data, this)

- then KexiProject::open()

and
-> call KexiDBPasswordDialog::getPasswordIfNeeded()
-> (async) KexiMainWindow::slotAutoOpenObjectsLater()

There's no single atomic method because we're have potentially interactive
tasks to do: 1. get the password before connecting 2. auto-opening startup
objects

If this helps, KexiMainWindow::create is the top level function and is made
for use outside of the regular kexi binary -- it's used in
GlobalSearchTest::testGlobalSearch() too.

Maybe step-by-step in debugger would help you to understand the call
hierarchy.
It's not too easy because we're dynamically deciding what to do (opening a
project or migrate or do something else).

On 2 April 2017 at 21:28, Adam Pigg <adam at piggz.co.uk> wrote:

> Jaroslaw,
>
> Are there any helper methods to get a KexiProject object from just a .kexi
> file?  If not, is the procedure to create:
> a driver
> a kdbconnectiondata
> a kdbconnection
> a kexiprojectdata
> a kexiproject
> ?
>



-- 
regards, Jaroslaw Staniek

KDE:
: A world-wide network of software engineers, artists, writers, translators
: and facilitators committed to Free Software development - http://kde.org
Calligra Suite:
: A graphic art and office suite - http://calligra.org
Kexi:
: A visual database apps builder - http://calligra.org/kexi
Qt Certified Specialist:
: http://www.linkedin.com/in/jstaniek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kexi-devel/attachments/20170403/25e5718e/attachment.html>


More information about the Kexi-devel mailing list