diff --git a/private/packages.cpp b/private/packages.cpp index d1b2d6a7e..0115390e6 100644 --- a/private/packages.cpp +++ b/private/packages.cpp @@ -154,6 +154,18 @@ ThemePackage::ThemePackage(QObject *parent) setDefaultMimetypes(mimetypes); } +WallpaperPackage::WallpaperPackage(QObject *parent) + : PackageStructure(parent, "Background") +{ + QStringList mimetypes; + mimetypes << "image/svg" << "image/png" << "image/jpeg" << "image/jpg"; + setDefaultMimetypes(mimetypes); + + addDirectoryDefinition("images", "images", i18n("Images")); + addFileDefinition("screenshot", "screenshot.png", i18n("Screenshot")); + setAllowExternalPaths(true); +} + } // namespace Plasma #include "packages_p.moc" diff --git a/private/packages_p.h b/private/packages_p.h index 7a03715e4..bd4da7442 100644 --- a/private/packages_p.h +++ b/private/packages_p.h @@ -44,6 +44,14 @@ public: explicit ThemePackage(QObject *parent = 0); }; +class WallpaperPackage : public PackageStructure +{ + Q_OBJECT + +public: + explicit WallpaperPackage(QObject *parent = 0); +}; + PackageStructure::Ptr defaultPackageStructure(ComponentType type); } // namespace Plasma