56caa4cc43727f4ebf81e211d5fb877e887bae74
[WebThing.git] / WebThingPlugin.cs
1 using System;
2 using System.Collections.Generic;
3 using WebKit;
4
5 namespace bytex64.WebThing {
6     public abstract class WebThingPlugin {
7         protected Dictionary<string,string> Options;
8
9         public WebThingPlugin() {
10             string classname = this.GetType().FullName;
11
12             if (Config.PluginOptions.ContainsKey(classname))
13                 Options = Config.PluginOptions[classname];
14             else
15                 Options = new Dictionary<string,string>();
16         }
17
18         public virtual void Init(WebThing wt) {}
19         public virtual void InitWebView(WebView wv) {}
20     }
21 }