• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Plasma

plasma_host.h

Go to the documentation of this file.
00001 /*
00002   Copyright 2008 Google Inc.
00003 
00004   Licensed under the Apache License, Version 2.0 (the "License");
00005   you may not use this file except in compliance with the License.
00006   You may obtain a copy of the License at
00007 
00008        http://www.apache.org/licenses/LICENSE-2.0
00009 
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 */
00016 
00017 #ifndef GGADGET_PLASMA_HOST_H__
00018 #define GGADGET_PLASMA_HOST_H__
00019 
00020 #include <ggadget/host_interface.h>
00021 #include "ggl_applet_script.h"
00022 class Gadget;
00023 
00024 namespace ggadget {
00025 
00026 using ggadget::ViewHostInterface;
00027 
00028 class PlasmaHost : public ggadget::HostInterface {
00029  public:
00030   PlasmaHost(GadgetInfo *info);
00031   virtual ~PlasmaHost();
00032   virtual ViewHostInterface *NewViewHost(Gadget *gadget,
00033                                          ViewHostInterface::Type type);
00034   virtual Gadget *LoadGadget(const char *path, const char *options_name,
00035                              int instance_id, bool show_debug_console);
00036   virtual void RemoveGadget(Gadget *gadget, bool save_data);
00037   virtual bool LoadFont(const char *filename);
00038   virtual void Run() {}
00039   virtual void ShowGadgetDebugConsole(Gadget *) {}
00040   virtual int GetDefaultFontSize();
00041   virtual bool OpenURL(const Gadget *gadget, const char *url);
00042 
00043   void onConstraintsEvent(Plasma::Constraints constraints);
00044 
00045  private:
00046   class Private;
00047   Private *d;
00048 };
00049 
00050 } // namespace ggadget
00051 
00052 #endif // GGADGET_PLASMA_HOST_H__

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal