Kexi Project Data from .kexi file

Adam Pigg adam at piggz.co.uk
Mon Apr 3 12:18:35 UTC 2017


My use case is in a mobile app without a Kexi main window ;)... Just
wondering what is the best approach. At the moment I'm not sure i can
create a qml component that is also a keximainwindowiface....I need to look
into this.

On Mon, 3 Apr 2017, 13:14 Jaroslaw Staniek, <staniek at kde.org> wrote:

>
> 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/b28ec446/attachment.html>


More information about the Kexi-devel mailing list