Plasma
plasma_host.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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 }
00051
00052 #endif // GGADGET_PLASMA_HOST_H__