Teo Mrnjavac
2a231b3532
Try to avoid passing GlobalStorage to Python by value.
2014-07-24 12:19:14 +02:00
Teo Mrnjavac
da83ecfb13
libcalamares.job is of type libcalamares.Job
2014-07-23 13:02:42 +02:00
Teo Mrnjavac
78de11a412
Emit job progress from Python jobs.
2014-07-23 12:54:53 +02:00
Aurélien Gâteau
89fd6a950b
Add support for per-job progress
2014-07-23 12:04:27 +02:00
Aurélien Gâteau
e9da5cb6cb
Change signature of JobQueue::progress, add finished() signal
...
Now uses a qreal for progress instead of current and total
Also added a finished() signal because determining whether the queue is
finished should not be done by comparing a qreal with 1.0 as this is not
precise.
2014-07-23 10:58:08 +02:00
Teo Mrnjavac
2636a1273f
Add job.setprogress to Python API.
2014-07-22 18:05:58 +02:00
Teo Mrnjavac
c6c2c67560
Rewrite Python error handling to show meaningful messages.
2014-07-22 17:48:56 +02:00
Teo Mrnjavac
0753e6ccde
New GlobalStorage map. With Python API support.
2014-07-21 17:09:23 +02:00
Teo Mrnjavac
d9f4c74537
Add support for config map to Python job API.
...
Rename PythonJobHelper ==> CalamaresPython::Helper.
Add QVariant to boost::python::object conversion functions.
Rename some constants in the libcalamares Python API.
2014-07-18 14:36:30 +02:00
Teo Mrnjavac
2f03dfa43b
CalamaresPrivate ==> CalamaresPython
2014-07-18 14:36:30 +02:00
Aurélien Gâteau
43f29b8058
Start working on tests for partition jobs
2014-07-18 10:51:54 +02:00
Teo Mrnjavac
e33e9de6f6
Symlink lib/calamares/libcalamares.so to lib/libcalamares.so for Python.
2014-07-17 19:42:16 +02:00
Teo Mrnjavac
a61a36d99d
We have a Python API for jobmodules!
...
Created a Boost.Python module interface in libcalamares.
Added a PythonJob wrapper and exposed it in the Python module.
Rename target calamareslib ==> calamares so in Python it's libcalamares.
Python-related classes in libcalamares that aren't exported as C++
symbols are now in a CalamaresPrivate namespace.
Import the libcalamares python module into every Python script before
running it.
Added Python error handling to PythonJobHelper.
Added some more testing code to dummypython module.
2014-07-17 19:42:16 +02:00
Teo Mrnjavac
b924aeef2b
Add optional Python jobs support to libcalamares.
2014-07-16 16:07:32 +02:00
Teo Mrnjavac
754ef7dbbc
Fix prettyName.
2014-07-16 16:02:14 +02:00
Aurélien Gâteau
7096213206
Move partitionmanager code to src/modules/partition
2014-07-15 11:54:09 +02:00
Teo Mrnjavac
51e5976a99
Better error message.
2014-07-14 14:28:52 +02:00
Teo Mrnjavac
2e47c248ac
Load modules by phase, in preparation for actually using new settings.
2014-07-11 14:40:15 +02:00
Aurélien Gâteau
22ff18f2cc
Update partitionmanager submodule, fixing build without KIO
2014-07-11 14:11:51 +02:00
Aurélien Gâteau
784f07cbbc
Update partitionmanager submodule: latest commits from the frameworks branch
...
@demm: This includes the btrfs fix
2014-07-10 20:00:53 +02:00
Aurélien Gâteau
2e3f1c655c
Update partitionmanager submodule, necessary for next commit
2014-07-10 19:54:23 +02:00
Aurélien Gâteau
b1ce4afc8c
Update partitionmanager submodule
2014-07-10 18:27:51 +02:00
Teo Mrnjavac
b3aae75bed
Add working directory to ProcessJob
2014-07-10 16:45:13 +02:00
Aurélien Gâteau
165d28fc23
Abort installation when a job fails
2014-07-10 14:47:06 +02:00
Teo Mrnjavac
fe7a64d5ab
Add ProcessJob, a wrapper for external commands.
2014-07-10 12:08:43 +02:00
Teo Mrnjavac
dbadbf69ec
Const correctness.
2014-07-10 12:06:23 +02:00
Teo Mrnjavac
d1151d87cf
Move implementation to cpp file.
2014-07-09 19:08:53 +02:00
Aurélien Gâteau
6881fdab6e
JobResult
2014-07-09 15:50:27 +02:00
Aurélien Gâteau
04743eb4be
Basic JobQueue implementation
2014-07-08 19:21:55 +02:00
Aurélien Gâteau
f10f2026ad
Update partitionmanager submodule
2014-07-07 14:52:25 +02:00
Teo Mrnjavac
4ec72f4afb
Refactored calamares_bin into calamares_bin and libcalamaresui.
...
Now linking with -Wl,--no-undefined!
Moved find_package KF5 from the root CMakeLists.txt to the partitioning
module where it belongs. KF5 deps should be limited to plugins.
Lots of random fixage to make stuff link.
Removed CalamaresApplication reference from Settings.
Removed the use of AbstractPage, we don't need it right now.
2014-07-03 18:00:40 +02:00
Aurélien Gâteau
bcfbf3eda2
Dummy implementation of JobQueue so that I can call it
2014-06-30 18:02:19 +02:00
Teo Mrnjavac
f1da3373a8
Added Typedefs.h and Job/JobQueue interfaces.
2014-06-27 18:04:53 +02:00
Teo Mrnjavac
afa1d9dce0
To build with partitionmanager: cmake -DWITH_PARTITIONMANAGER=1
2014-06-27 15:55:25 +02:00
Teo Mrnjavac
6388171521
Stubs for JobQueue and Job.
2014-06-27 15:55:25 +02:00
Aurélien Gâteau
02af2dccb9
Introduce libcalapm
...
This adds a submodule pointing to a fork of KDE Partition Manager. All
Calamares-specific changes are in the "calamares" branch of this fork.
2014-06-26 16:46:06 +02:00
Aurélien Gâteau
3cc7fe3245
Rename config.h to CalamaresConfig.h
...
Avoid name clashes with partitionmanager's config.h
2014-06-26 14:22:13 +02:00
Teo Mrnjavac
6324feb2f3
Probably best to not even try to mkdir /usr/lib
2014-06-24 13:38:01 +02:00
Teo Mrnjavac
ef48f36445
Add modules path in build dir if --debug.
...
Also fix config.h location.
2014-06-24 13:35:21 +02:00
Teo Mrnjavac
ab5c818f4f
Fix -Wnarrowing warnings in KDSingleApplicationGuard
2014-06-19 11:13:02 +02:00
Teo Mrnjavac
d20e3ce598
Add DLLEXPORT_PRO definitions.
2014-06-18 18:42:01 +02:00
Teo Mrnjavac
13fcf387c7
A bunch of work on loading plugins.
...
Also switched to C++11.
2014-06-18 18:05:04 +02:00
Aurélien Gâteau
1da7ba446d
Fix link error on Qt5 libs
2014-06-17 14:59:49 +02:00
Teo Mrnjavac
05d355f21f
Config files are YAML, not JSON. We depend on yaml-cpp for parsing.
2014-06-13 16:40:42 +02:00
Teo Mrnjavac
4e14ec7834
Fixed defines for Logger
2014-06-12 13:49:58 +02:00
Teo Mrnjavac
6899b1f0fa
Added CMake magic for plugin infrastructure.
...
Added ViewManager.
Added dummy Settings class.
Added dummy plugin interface (UI plugins only).
Added dummy greeting plugin.
Added DLLEXPORT macros for UI plugin interface and plugins.
2014-06-11 13:39:20 +02:00
Teo Mrnjavac
b21dc4fe4c
Added Utils, Logger, Translations, QCommandLineParser, init boilerplate
2014-06-06 17:19:59 +02:00
Teo Mrnjavac
2120685822
Fix error in headers.
2014-06-04 18:23:48 +02:00
Teo Mrnjavac
27cea281bc
Added KDSingleApplicationGuard boilerplate because it's a singleton.
...
Also DllMacro.h
2014-06-04 18:19:05 +02:00
Teo Mrnjavac
b5ec7c4702
CMake skeleton.
2014-06-04 16:35:26 +02:00