Commit Graph

22 Commits

Author SHA1 Message Date
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
Aaron J. Seigo
ac195d0137 * make read non-static so you have to create a PackageStructure first; better symetry with write and prevents some unecessary object copies between methods (e.g. load -> read)
* provide a load method

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779402
2008-02-26 01:46:17 +00:00
Paolo Capriotti
49f0a32580 Add PackageStructure::read, write and related tests.
CCMAIL:panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=743970
2007-12-02 13:16:39 +00:00
Paolo Capriotti
b88aea051e Cleanup of Package classes as discussed on panel-devel.
* Add convenience constructor to the Package class.
* Make some methods const in PackageStructures.
* Use QByteArray to store keys in PackageStructures, so that they are compared
  by value, and not by address.
* Add a test checking that the path to the metadata file is retrieved correctly.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=741935
2007-11-26 19:16:40 +00:00
Aaron J. Seigo
1176180a40 * return keys instead of paths; that's what the path(const char* key) method is for
* files and requiredFiles were reversed (unit testing is indeed good)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=727888
2007-10-22 01:28:48 +00:00
Aaron J. Seigo
3b4b624e08 mark directory entries as .... directories!
patch courtesy of Andrea Diamantini
CCMAIL:adjam7@gmail.com

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=723441
2007-10-09 17:22:52 +00:00
Aaron J. Seigo
db4a7ebe61 copyright cleanups:
* Copyright (C) -> Copyright
* add "or later" clause to files that i have the sole copyright on
* add current year (2007) to my copyrights where it was missing

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696946
2007-08-06 11:20:02 +00:00
Aaron J. Seigo
11cba27eee * dissallow copying of PackageStructure as it has a dptr but no copy ctor
* Package::isValid() checks if the Package is valid, e.g. all required files and dirs are present
* add methods to PackageStructure which return just the required bits

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690102
2007-07-20 03:21:40 +00:00
Aaron J. Seigo
0174be3330 * api docu fixes
* allow setting a default mimetype for a package

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676513
2007-06-17 01:04:59 +00:00
Aaron J. Seigo
eb5522104a add the non-gui packaging files to libplasma
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676505
2007-06-17 00:25:16 +00:00