Commit b05838ac authored by Jim Nelson's avatar Jim Nelson

#182: Further work on plugins. Added reserved symbols to plugin interfaces to...

#182: Further work on plugins.  Added reserved symbols to plugin interfaces to make room for future expansion.
parent 63454895
......@@ -35,6 +35,18 @@ public interface Publisher : GLib.Object {
/* plugins must relinquish their host reference when stop( ) is called */
public abstract void stop();
//
// For future expansion.
//
public virtual void reserved0() {}
public virtual void reserved1() {}
public virtual void reserved2() {}
public virtual void reserved3() {}
public virtual void reserved4() {}
public virtual void reserved5() {}
public virtual void reserved6() {}
public virtual void reserved7() {}
}
public interface DialogPane : GLib.Object {
......@@ -52,6 +64,18 @@ public interface DialogPane : GLib.Object {
public abstract void on_pane_installed();
public abstract void on_pane_uninstalled();
//
// For future expansion.
//
public virtual void reserved0() {}
public virtual void reserved1() {}
public virtual void reserved2() {}
public virtual void reserved3() {}
public virtual void reserved4() {}
public virtual void reserved5() {}
public virtual void reserved6() {}
public virtual void reserved7() {}
}
/* fraction_complete should be between 0.0 and 1.0 inclusive */
......@@ -99,6 +123,18 @@ public interface PluginHost : GLib.Object, Spit.HostInterface {
bool strip_metadata = false);
public abstract Spit.Publishing.Publisher.MediaType get_publishable_media_type();
//
// For future expansion.
//
public virtual void reserved0() {}
public virtual void reserved1() {}
public virtual void reserved2() {}
public virtual void reserved3() {}
public virtual void reserved4() {}
public virtual void reserved5() {}
public virtual void reserved6() {}
public virtual void reserved7() {}
}
public interface Publishable : GLib.Object {
......@@ -111,10 +147,34 @@ public interface Publishable : GLib.Object {
public abstract string[] get_publishing_keywords();
public abstract Spit.Publishing.Publisher.MediaType get_media_type();
//
// For future expansion.
//
public virtual void reserved0() {}
public virtual void reserved1() {}
public virtual void reserved2() {}
public virtual void reserved3() {}
public virtual void reserved4() {}
public virtual void reserved5() {}
public virtual void reserved6() {}
public virtual void reserved7() {}
}
public interface Service : Object, Spit.Pluggable {
public abstract Spit.Publishing.Publisher create_publisher(Spit.Publishing.PluginHost host);
//
// For future expansion.
//
public virtual void reserved0() {}
public virtual void reserved1() {}
public virtual void reserved2() {}
public virtual void reserved3() {}
public virtual void reserved4() {}
public virtual void reserved5() {}
public virtual void reserved6() {}
public virtual void reserved7() {}
}
}
......
......@@ -73,6 +73,18 @@ public interface Module : Object {
// May return NULL or an empty array.
//
public abstract Pluggable[]? get_pluggables();
//
// For future expansion.
//
public virtual void reserved0() {}
public virtual void reserved1() {}
public virtual void reserved2() {}
public virtual void reserved3() {}
public virtual void reserved4() {}
public virtual void reserved5() {}
public virtual void reserved6() {}
public virtual void reserved7() {}
}
public struct PluggableInfo {
......@@ -115,6 +127,18 @@ public interface Pluggable : Object {
// Returns extra information about the Pluggable that is used to identify it to the user.
//
public abstract void get_info(out PluggableInfo info);
//
// For future expansion.
//
public virtual void reserved0() {}
public virtual void reserved1() {}
public virtual void reserved2() {}
public virtual void reserved3() {}
public virtual void reserved4() {}
public virtual void reserved5() {}
public virtual void reserved6() {}
public virtual void reserved7() {}
}
//
......@@ -143,6 +167,18 @@ public interface HostInterface : Object {
public abstract void set_config_double(string key, double val);
public abstract void unset_config_key(string key);
//
// For future expansion.
//
public virtual void reserved0() {}
public virtual void reserved1() {}
public virtual void reserved2() {}
public virtual void reserved3() {}
public virtual void reserved4() {}
public virtual void reserved5() {}
public virtual void reserved6() {}
public virtual void reserved7() {}
}
}
......
......@@ -51,6 +51,18 @@ public class Visuals : Object {
this.to_pos = to_pos;
this.bg_color = bg_color;
}
//
// For future expansion.
//
public virtual void reserved0() {}
public virtual void reserved1() {}
public virtual void reserved2() {}
public virtual void reserved3() {}
public virtual void reserved4() {}
public virtual void reserved5() {}
public virtual void reserved6() {}
public virtual void reserved7() {}
}
// Motion contains all the pertinent information regarding the animation of the transition. Some
......@@ -81,6 +93,18 @@ public class Motion : Object {
public double get_alpha(int frame_number) {
return (double) frame_number / (double) total_frames;
}
//
// For future expansion.
//
public virtual void reserved0() {}
public virtual void reserved1() {}
public virtual void reserved2() {}
public virtual void reserved3() {}
public virtual void reserved4() {}
public virtual void reserved5() {}
public virtual void reserved6() {}
public virtual void reserved7() {}
}
// A Descriptor offers information about an Effect as well as a factory method so instances may
......@@ -88,6 +112,18 @@ public class Motion : Object {
public interface Descriptor : Object, Spit.Pluggable {
// Returns an instance of the Effect this descriptor represents.
public abstract Effect create(Spit.HostInterface host);
//
// For future expansion.
//
public virtual void reserved0() {}
public virtual void reserved1() {}
public virtual void reserved2() {}
public virtual void reserved3() {}
public virtual void reserved4() {}
public virtual void reserved5() {}
public virtual void reserved6() {}
public virtual void reserved7() {}
}
// An Effect represents a particular interstitial effect that may be used when switching
......@@ -133,6 +169,18 @@ public interface Effect : Object {
// The Effect should stop the transition. It only needs to reset state if start() is called
// again.
public abstract void cancel();
//
// For future expansion.
//
public virtual void reserved0() {}
public virtual void reserved1() {}
public virtual void reserved2() {}
public virtual void reserved3() {}
public virtual void reserved4() {}
public virtual void reserved5() {}
public virtual void reserved6() {}
public virtual void reserved7() {}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment