Commit Graph

59 Commits

Author SHA1 Message Date
Nicolas Lécureuil
ec872fa08d Show the warning before metadataPath is clear, if not the warning always show an empty result.
svn path=/trunk/KDE/kdelibs/; revision=1208682
2010-12-22 20:55:59 +00:00
Aaron J. Seigo
d71dc6de98 only append a separator if one isn't already there; otherwise this screws up checks for canonical path existance when a path with a trialing / is passed in as the root and external paths are not allowed
svn path=/trunk/KDE/kdelibs/; revision=1206641
2010-12-15 07:11:46 +00:00
Aaron J. Seigo
e2ea3a5715 treat no contents prefixes as valid and equivalent to one prefix of QString()
svn path=/trunk/KDE/kdelibs/; revision=1206635
2010-12-15 06:28:33 +00:00
Kevin Ottens
ee5df8d9e4 More kgenericfactory.h cleanups.
svn path=/trunk/KDE/kdelibs/; revision=1195206
2010-11-10 15:25:56 +00:00
Marco Martin
5e9d88496a FEATURE: fallback paths for the contents prefixes as well.
this is basically a merge of http://reviewboard.kde.org/r/5765/ with http://svn.reviewboard.kde.org/r/5763

svn path=/trunk/KDE/kdelibs/; revision=1193135
2010-11-04 19:18:32 +00:00
Aaron J. Seigo
433bb098dd FEATURE: allow entire search paths for a given key, as seen on RB#5763
svn path=/trunk/KDE/kdelibs/; revision=1192747
2010-11-03 22:11:28 +00:00
Aaron J. Seigo
ee8dd50515 pass
svn path=/trunk/KDE/kdelibs/; revision=1185869
2010-10-14 12:38:48 +00:00
Kevin Ottens
c0f66faad7 Allow to build libplasma without KIO. Only issue is that the
copying/moving/removal of folders is defunct (so is the package
install/uninstall).

svn path=/trunk/KDE/kdelibs/; revision=1185865
2010-10-14 12:27:15 +00:00
Aaron J. Seigo
782f9bff9e support tarballs as well, since Plasma::Package does
BUG:252612

svn path=/trunk/KDE/kdelibs/; revision=1181725
2010-10-01 21:33:16 +00:00
Jaime Torres Amate
57bbfe755c delete some uneeded if (pointer not null)
http://reviewboard.kde.org/r/5021/

svn path=/trunk/KDE/kdelibs/; revision=1167869
2010-08-25 14:48:41 +00:00
Carlo Segato
4b8bffc1f8 use forwardslashes instead of QDir::separator() even on windows, otherwise we get a path with mixed slashes
svn path=/trunk/KDE/kdelibs/; revision=1165684
2010-08-19 22:55:15 +00:00
Kevin Ottens
1334744175 KIO::NetAccess code proves the call to mostLocalUrl was useless (if
url.isLocalFile(), this method just return the url parameter as is).

svn path=/trunk/KDE/kdelibs/; revision=1125021
2010-05-10 14:39:54 +00:00
Aaron J. Seigo
3818bc13e6 cleanups
svn path=/trunk/KDE/kdelibs/; revision=1112726
2010-04-08 23:47:21 +00:00
Aaron J. Seigo
55dba31bcf read in and write out the other configurable aspects of package structures
svn path=/trunk/KDE/kdelibs/; revision=1112723
2010-04-08 23:13:45 +00:00
Aaron J. Seigo
eb0f684143 api wart note
svn path=/trunk/KDE/kdelibs/; revision=1088019
2010-02-10 00:27:58 +00:00
Petri Damstén
289b9ac1eb Add WallpaperScript.
Review: http://reviewboard.kde.org/r/1984/

svn path=/trunk/KDE/kdelibs/; revision=1042086
2009-10-29 05:54:11 +00:00
Carlo Segato
0d1e72248e use toLocalFile() instead of path(), since path() returns a path prepended by / which is invalid on windows
svn path=/trunk/KDE/kdelibs/; revision=1034397
2009-10-12 15:47:38 +00:00
Artur Duque de Souza
6dab30af74 Use KUrl instead of plain QString to enable the use of
full urls like nepomuksearch:/ .

svn path=/trunk/KDE/kdelibs/; revision=1022157
2009-09-10 22:53:41 +00:00
Sebastian Kügler
7e5f781abd noise--
svn path=/trunk/KDE/kdelibs/; revision=952065
2009-04-10 20:05:37 +00:00
Aaron J. Seigo
55feec87c0 move the entryList and path setting logic into PackageStructure so that packages can have a bit more control over their life
svn path=/trunk/KDE/kdelibs/; revision=950408
2009-04-07 05:42:30 +00:00
Christian Ehrlicher
7226f0a731 a lot more KUrl::path() -> KUrl::toLocalFile() changes
svn path=/trunk/KDE/kdelibs/; revision=933028
2009-02-27 20:53:53 +00:00
Aaron J. Seigo
5c1c03d6b7 set the names properly in line with the requested types
svn path=/trunk/KDE/kdelibs/; revision=923909
2009-02-09 18:02:03 +00:00
Aaron J. Seigo
ac708dc8d3 better names
svn path=/trunk/KDE/kdelibs/; revision=923357
2009-02-08 16:53:54 +00:00
Aaron J. Seigo
b59302b92f support the standard package types
svn path=/trunk/KDE/kdelibs/; revision=922898
2009-02-07 18:48:11 +00:00
Aaron J. Seigo
023ae75d69 allow package structures to say that external paths are ok. defaults to false, though some packagestructures that do not have executable code capabilities (e.g. wallpaper image sets) may wish to take advantage of this
CCBUG:180716

svn path=/trunk/KDE/kdelibs/; revision=911736
2009-01-16 01:02:35 +00:00
Aaron J. Seigo
22179dffbb prevent unnecessary multiple calls to pathChanged, which can be more or less expensive but usually results in hitting disk
svn path=/trunk/KDE/kdelibs/; revision=910610
2009-01-13 19:50:01 +00:00
Laurent Montel
eebb6178a5 Fix iterator
svn path=/trunk/KDE/kdelibs/; revision=906617
2009-01-06 13:09:05 +00:00
Aaron J. Seigo
d45d4e1997 when the path changes, reset the metadata
svn path=/trunk/KDE/kdelibs/; revision=881280
2008-11-07 17:26:28 +00:00
Aaron J. Seigo
4b08c03726 change KDE includes to use the .h style now that we're in libs
svn path=/trunk/KDE/kdelibs/; revision=879795
2008-11-04 02:04:34 +00:00
Aaron J. Seigo
1b523b9054 ok, this time JUST the plasma dir ;)
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9 bum-de-dum! plasma to kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Aaron J. Seigo
fdbd52d617 simplify this quite a bit by moving some of the code out to a helper method; as an added bonus this avoids creating tempdir and other objects unnecessarily
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879356
2008-11-03 03:57:03 +00:00
Petri Damstén
870e710307 Support for metadata in PackageStructure.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879173
2008-11-02 15:28:59 +00:00
Aaron J. Seigo
59b5ac3080 allow PackageStructures to provide their own online browsers
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=871119
2008-10-13 22:40:00 +00:00
Allen Winter
e88e2faa63 first batch of small coding style fixes.
these were found while testing the Krazy style checker, which I'm adapting
for the kdelibs style.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870051
2008-10-11 16:19:04 +00:00
Petri Damstén
fdfdb97adb Add support for defaultPackageRoot and servicePrefix to package handling.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=865083
2008-09-26 15:43:32 +00:00
Richard J. Moore
c8f517206a Add support for removing packages
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=846532
2008-08-13 16:40:31 +00:00
Joseph Burns
cf1d001296 Add absolute file support to PackageStructure::load
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838909
2008-07-29 02:23:14 +00:00
Aaron J. Seigo
8e9e1e1478 allow the main script to be overriden
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827477
2008-07-03 05:45:07 +00:00
Marijn Kruisselbrink
21b148b963 change all ClassName::Private classes to ClassNamePrivate, and adjust friends accordingly; this makes plasma compilable with gcc < 4.2
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826893
2008-07-01 18:56:43 +00:00
Aaron J. Seigo
ae609c6018 fix package installation. this method was removed it the API review, but it is actually required.
BUG:163290

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=817331
2008-06-05 19:32:15 +00:00
Joseph Burns
4b0bc4fb5a API Review: uninstallPackage -> packageName instead of param package
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802278
2008-04-29 00:56:33 +00:00
Anne-Marie Mahfouf
e985e96129 API review: pathChanged() not needed
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802098
2008-04-28 14:41:59 +00:00
Albert Astals Cid
4068f45cf9 const & in foreach
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801430
2008-04-26 16:19:00 +00:00
Anne-Marie Mahfouf
eff92e33d7 API review: required() -> isRequired()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801415
2008-04-26 15:26:40 +00:00
Aaron J. Seigo
4da6dba89b add a stub for PackageStructure::uninstallPackage
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791610
2008-03-30 00:56:09 +00:00
Aaron J. Seigo
a3ed531670 * use PackageMetadata when installing a package
* provide a Package::registerPackage convenience method
* make the contentsPrefix optional / changeable; required for packages we don't control the structure of
* PackageMetadata -> file fixes
* provide a way to set the implementation languae in PackageMetadata (e.g. "dashboard" or "webkit")

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780464
2008-02-29 08:14:32 +00:00
Aaron J. Seigo
1a84d94eeb package structure appropriateness for dynamic packages
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780124
2008-02-28 03:53:26 +00:00
Aaron J. Seigo
577ea0bbe6 * let PackageStructures define their own install routine
* split install in Package into both installing the Package and registering it, allowing PackageStructures to implement their own installation routine without having to reimplement registration

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779805
2008-02-27 00:51:04 +00:00
Aaron J. Seigo
9c94c63dfe make PackageStructure a loadable plugin, so that there are now three methods to get a PackageStructure:
0. builtin
1. c++ plugin
2. config file

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779415
2008-02-26 04:07:07 +00:00