Commit Graph

83 Commits

Author SHA1 Message Date
Aaron Seigo
4288bb9744 ensure that prefixes all have a trailing slash
why? because the rest of the code assumes that (for performance reasons)
2012-10-31 12:15:42 +01:00
David Faure
9057ce0c70 Fix compilation with the new cmake automoc stuff. 2012-02-08 23:34:07 +01:00
Stephen Kelly
8d37df4b8f Remove moc includes that can be omitted.
Mostly these are "<name>.moc" style includes which are incorrect
compared to qmake and cmake automoc behaviour.
2012-01-31 22:44:36 +01:00
Aaron Seigo
71d807c353 Merge remote branch 'origin/KDE/4.7' into frameworks
Conflicts:
	CMakeLists.txt
	kio/kfile/kfilemetadatareaderprocess.cpp
	plasma/CMakeLists.txt
	plasma/packagestructure.cpp
	plasma/private/packages.cpp
	threadweaver/Mainpage.dox
2011-12-04 14:25:38 +01:00
Aaron Seigo
b7e335265f catch another possible mimetype identification
BUG:252612
2011-12-03 17:46:20 +01:00
David Faure
00b0cc8085 oops, git rm didn't do what I thought during merge-conflict-resolving 2011-09-18 14:01:03 +02:00
David Faure
9cc86d27af Merge remote branch 'origin/KDE/4.7' into origin-frameworks
Conflicts:
	plasma/packagestructure.cpp (discarded the 4.7 patch)
	tier1/solid/solid/backends/wmi/wmidevice.cpp (Q_FOREACH)
2011-09-18 13:55:17 +02:00
Marco Martin
21d9d07e0b remove the static hash of packagestructure
unfortunately they are stateful with a state per-package, so sharing them leads to an incorrect state
2011-09-15 23:48:52 +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
8c354ba4c6 reintroducing PackageStructure as we need it for the virtuals. it is now a properly stateless clas, however, unlike in libplasma1 2011-07-19 21:36:29 +02:00
Aaron Seigo
c16dffd1e7 the rest of the fallout from the package changes 2011-07-15 13:35:58 +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
41bb1efb74 PackageStructure no longer does widget browser UI
too many problems with this: device appropriateness, not all packages are widgets, requires PackageStructure to be a QObject, etc..
2011-07-13 20:27:12 +02:00
Aaron Seigo
273b09d3db use KPluginInfo instead of PackageMetadata 2011-05-31 01:02:45 +02:00
Aaron Seigo
c8443a0958 remove deprecated prefix methods; there are now multiple prefixes! 2011-05-27 12:12:52 +02:00
Aaron Seigo
bd2cb96e55 move install/uninstallPackage implementaton into PackageStructure 2011-05-20 10:43:40 +02:00
Nicolas Lécureuil
d43e4c9066 Should be Mimetypes instead of MimeTypes 2011-05-06 14:17:49 +02:00
Nicolas Lécureuil
9590842c89 Fix typo 2011-05-06 14:14:28 +02:00
Aaron Seigo
060ad2e80b Mimetype -> MimeType 2011-05-06 12:31:03 +02:00
Aaron Seigo
15dbd12daf constify 2011-05-06 12:21:58 +02:00
Aaron Seigo
7e99f4c2cd mimetype -> mimeType 2011-05-06 12:20:00 +02:00
Nicolas Lécureuil
c29c17c400 Fix crahs by checking archive
http://reviewboard.kde.org/r/6184

svn path=/trunk/KDE/kdelibs/; revision=1208684
2010-12-22 20:59:33 +00:00
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