Aaron Seigo
9b7b6054ee
ensure prefixes end with '/'
2012-10-31 12:17:19 +01:00
Aaron Seigo
18563be2fb
code style fixes
2012-09-23 11:25:03 +02:00
David Faure
5118a8d226
last kmimetype -> qmimetype port
2012-06-21 09:19:32 +02:00
David Faure
127c54fd1c
The restructuring in 02dcf75a073017a049db70e3e duplicated some code,
...
including this list of mimetypes, so it wasn't updated after the changes
in 4.8 (897b07485a8c) got merged into the other copy of this code, in this same file...
CCMAIL: aseigo@kde.org
2012-06-21 00:04:24 +02:00
David Faure
1480efc1ce
Fix compilation, by reverting package.cpp to before the merge
...
and redoing c5f36b67f4d3a98fe93dcbef7fb3361248e69b1b
(removal of KIO code path) by hand.
2012-06-20 23:58:30 +02:00
David Faure
8f02ed76a1
some compilation fixes, but plasma/package.cpp is still a big mess
2012-06-18 13:52:02 +02:00
Stephen Kelly
9d49500245
Merge remote-tracking branch 'origin/KDE/4.8' into frameworks
...
Conflicts:
CMakeLists.txt
interfaces/terminal/example/CMakeLists.txt
kdecore/CMakeLists.txt
kdeui/actions/ktogglefullscreenaction.cpp
kdeui/widgets/khelpmenu.cpp
kio/kio/accessmanager.cpp
kio/kio/accessmanagerreply_p.cpp
nepomuk/core/nepomukmainmodel.cpp
nepomuk/core/resourcedata.cpp
nepomuk/core/resourcemanager.cpp
nepomuk/query/andterm_p.h
nepomuk/query/comparisonterm.cpp
nepomuk/query/comparisonterm_p.h
nepomuk/query/literalterm.cpp
nepomuk/query/literalterm_p.h
nepomuk/query/negationterm.cpp
nepomuk/query/negationterm_p.h
nepomuk/query/optionalterm.cpp
nepomuk/query/optionalterm_p.h
nepomuk/query/orterm.cpp
nepomuk/query/orterm_p.h
nepomuk/query/query.cpp
nepomuk/query/resourceterm.cpp
nepomuk/query/resourceterm_p.h
nepomuk/query/resourcetypeterm.cpp
nepomuk/query/resourcetypeterm_p.h
nepomuk/query/term_p.h
plasma/package.cpp
plasma/private/service_p.h
plasma/runnermanager.cpp
staging/kwidgets/autotests/kiconloader_unittest.cpp
tier1/kcoreaddons/src/caching/kshareddatacache.cpp
tier1/kdbusaddons/src/kdbusinterprocesslock.cpp
tier1/solid/src/solid/backends/fstab/fstabmanager.cpp
tier1/solid/src/solid/backends/wmi/wmicdrom.cpp
tier1/solid/src/solid/backends/wmi/wmidevice.cpp
tier1/solid/src/solid/backends/wmi/wmimanager.cpp
tier1/solid/src/solid/backends/wmi/wmiopticaldisc.cpp
2012-06-16 13:40:47 +02:00
David Faure
ffdf930f8c
Ran kdesdk/scripts/kf5/convert-kstandarddirs.pl
2012-06-12 12:59:34 +02:00
Aaron Seigo
46a60a4fe8
Package operates locally only as it is, so no point in using KIO here.
...
this also happens to allow plasmapkg to work outside a kde session.
2012-05-31 14:58:18 +02:00
David Faure
0fd5c690c8
KStandardDirs::locate/locateLocal ported, by script, this time.
...
(kdesdk/scripts/kf5/convert-kstandarddirs.pl coming up)
2012-05-30 20:25:25 +02:00
David Faure
d278887d91
Increase version number in runtime services, to avoid mixups.
...
Executable names:
kdeinit4 -> kdeinit5
kded4 -> kded
DBus service names:
org.kde.kded -> org.kde.kded5
org.kde.klauncher -> org.kde.klauncher5
This fixes jobtest with Qt5 (difference in QDateTime serialization), but
more generally it will allow BIC changes in SlaveBase, as well as
not crashing due to kdeinit4 or kded4 loading KF5/Qt5 modules, etc.
2012-05-14 01:07:37 +02:00
David Faure
4ce1afaa9f
Enable -DQT_NO_URL_CAST_FROM_STRING globally, and fix the code.
2012-05-02 15:08:52 +02:00
Nicolas Lécureuil
01847045ef
Port to QTemporaryDir
2011-12-06 20:08:22 +01:00
Aaron Seigo
135dee0367
forward port fix for bug #252612 from 6ed9229f4b2df1d98821bef5ab7a361b5dea9ffa in KDE/4.7 branch
2011-12-04 14:37:10 +01:00
Jeremy Whiting
ea1f079c34
KTar already supports xz and lzma files, also support them in Plasma::Package.
...
BUG:287913
(cherry picked from commit 897b07485a8cd70f831b8f586dc84859016b2572)
2011-12-02 12:03:42 -07:00
Jeremy Whiting
2313cc258b
KTar already supports xz and lzma files, also support them in Plasma::Package.
...
BUG:287193
2011-12-01 15:52:44 -07:00
David Faure
108536cb93
Port from KTemporaryFile to QTemporaryFile, and deprecate KTemporaryFile.
...
My merge request (qtbase/57) for the missing feature in QTemporaryFile
(naming the temp file after the application, to be able to sort out which
app is leaking temp files), has been merged, so we don't need KTemporaryFile
anymore.
2011-10-04 16:52:38 +02:00
David Faure
55240b8f31
Must include config-plasma.h *before* the #ifndefs...
2011-09-02 10:50:04 +02:00
Marco Martin
d09397673e
correctly concatenate the path.
...
package is valid again (and passes plasmoidpackagetest)
2011-08-31 12:53:09 +02:00
Marco Martin
37ac5105ab
fix resolution of paths w/ only a packageRoot+name
2011-08-31 12:53:09 +02:00
Marco Martin
7e50fe0f40
a new PackageStructure type: GenericComponent
...
this component will be used for loading generic repositories of files,
usually will be repositories of QML files
2011-08-31 12:53:09 +02:00
Aaron Seigo
c872553117
poke syscoca immediately
2011-07-30 18:31:22 +02:00
Aaron Seigo
82eee5c3b7
avoid compiling in debug strings when compiled without debug
2011-07-29 15:46:52 +02:00
Aaron Seigo
fbde93c64f
give package a cache for found items; make the dptr implicitly shared
...
this drops a 100k loop of copies from ~2700ms to ~37ms and a 100k loop
of copy-n-find from ~3900ms to ~40ms.
the cache addition is predicated on the idea that lookups of the same files will be frequent enough to warrant the small amount of extra memory usage for the cache. if that does not hold in practice (though it appears to) then this will not be a gain and in fact be a small net loss for memory footprint
the dptr change is predicated on the assumption that copies of Package will be frequent, and so must be low cost. this is known to be true. even if it wasn't, there is no down-side to this change. the upside are significant time and memory savings.
2011-07-22 17:24:40 +02:00
Aaron Seigo
1ca9580149
call initPackage in the ctor
2011-07-21 15:04:56 +02:00
Aaron Seigo
678d5d81ef
fix assignment and copy operators
2011-07-21 14:57:43 +02:00
Aaron Seigo
f3a66f1f79
allow stripping out the name and mimetype data from the package info; only really useful for package introspection (e.g. in plasmate and other such tools) but a waste on mobile
2011-07-21 14:41:01 +02:00
Aaron Seigo
35898d57f1
get rid of all Class:load(..) methods, use PluginLoader directrly. --apiBloat;
2011-07-19 22:04:22 +02:00
Aaron Seigo
fb3a64ba6c
make Package use PackageStructure, remove all virtuals
...
also kills the read/write methods as precisely zero things were using it
2011-07-19 21:37:39 +02:00
Aaron Seigo
911dcabb5a
return the hex representation, as we used to
...
and now, plasmoidpackagetest passes 6 out of 6 tests. huzzah!
2011-07-15 14:24:35 +02:00
Aaron Seigo
08c07c4a0d
d->path, not path. error while merging. thank goodness for unit tests.
2011-07-15 14:17:42 +02:00
Aaron Seigo
cfa12b6c90
put package loading into PluginLoader with the rest of them
2011-07-15 13:34:10 +02:00
Aaron Seigo
d91fede662
merge packagestructure with package, make the commensurate change in the build
2011-07-15 12:57:46 +02:00
Aaron Seigo
0be4634b60
Merge remote-tracking branch 'origin/master' into libplasma2
2011-07-13 20:40:03 +02:00
Marco Martin
a4d079975b
a new PackageStructure type: GenericComponent
...
this component will be used for loading generic repositories of files,
usually will be repositories of QML files
2011-07-13 20:32:25 +02:00
Aaron Seigo
0633f2fd28
isPublished no longer required
2011-07-13 20:07:33 +02:00
Aaron Seigo
2f1c50c419
remove unpublish
2011-07-13 20:06:09 +02:00
Aaron Seigo
0fa24619d4
remove publish functionality
2011-07-13 20:05:07 +02:00
Aaron Seigo
97682614dd
these list methods, while theoretically useful, were not actually used. out they go.
...
if we ever need something like this, it should be provided by the plugin itself so
as to be plugin neutral.
2011-07-13 18:04:29 +02:00
Aaron Seigo
b4dbbbb7d0
get rid of the convenience method; not used
2011-07-08 20:08:06 +02:00
Aaron Seigo
755a1f2ba6
more accurate (c)
2011-07-08 19:36:29 +02:00
Aaron Seigo
273b09d3db
use KPluginInfo instead of PackageMetadata
2011-05-31 01:02:45 +02:00
Aaron Seigo
cd32321b68
Merge branch 'libplasma2_signedpackages' into libplasma2
...
Conflicts:
plasma/package.cpp
2011-05-30 23:41:53 +02:00
Aaron Seigo
840ae26b2d
use QCryptographicHash instead of QCA
2011-05-27 12:26:59 +02:00
Aaron Seigo
2caa24b1b8
need to init qca
2011-05-26 16:03:38 +02:00
Aaron Seigo
3b6a49b5bd
need to init qca
2011-05-26 16:02:01 +02:00
Aaron Seigo
89c7e9b726
remove createPackage as well; it's a bit impl-specific and isn't used anywhere
2011-05-20 10:48:29 +02:00
Aaron Seigo
0c847e15f0
remove registerPackage; the impl is broken (assume a plasmoid) and isn't used
2011-05-20 10:45:22 +02:00
Aaron Seigo
bd2cb96e55
move install/uninstallPackage implementaton into PackageStructure
2011-05-20 10:43:40 +02:00
Aaron Seigo
9cdbf422ff
consolidate remoting files, add signing gsoc
2011-04-29 15:18:35 +02:00