not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / plasma / scriptengines / google_gadgets / ggl_package.h
blob062e29c0251be508161b9b6ad21236a8f68ddca5
1 /*
2 Copyright 2008 Google Inc.
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
17 #ifndef GGADGET_PACKAGE_H
18 #define GGADGET_PACKAGE_H
20 #include <Plasma/Package>
21 #include <Plasma/PackageStructure>
22 #include <Plasma/PackageMetadata>
23 class GadgetBrowserHost;
24 class GglPackage : public Plasma::PackageStructure {
25 Q_OBJECT
26 public:
27 GglPackage(QObject *parent, const QVariantList &args);
29 virtual ~GglPackage();
30 virtual bool installPackage(const QString &archivePath,
31 const QString &packageRoot);
32 virtual void createNewWidgetBrowser(QWidget *parent = 0);
34 void gadgetBrowserClosed();
36 private:
37 GadgetBrowserHost *host_;
40 #endif