diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-09-28 22:16:45 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-10-02 23:09:02 +0200 |
commit | 1a5fba3b7f1fe6b2119a7bf706bc733ad3438a43 (patch) | |
tree | 21bfc7642a9aceda6d630a99aeea09a3ad0d7d34 | |
parent | d1e65b496c5465a523c2118c11382f58519f7415 (diff) |
Add stub for SPICE plugin methods
-rw-r--r-- | SPICEConsoleAPI.cpp | 23 | ||||
-rw-r--r-- | SPICEConsoleAPI.h | 13 |
2 files changed, 36 insertions, 0 deletions
diff --git a/SPICEConsoleAPI.cpp b/SPICEConsoleAPI.cpp index f13dbec..7fddfb9 100644 --- a/SPICEConsoleAPI.cpp +++ b/SPICEConsoleAPI.cpp @@ -29,6 +29,29 @@ SPICEConsolePtr SPICEConsoleAPI::getPlugin() } +// Methods + +void SPICEConsoleAPI::connect() +{} + +void SPICEConsoleAPI::show() +{} + +void SPICEConsoleAPI::disconnect() +{} + +void SPICEConsoleAPI::SetLanguageStrings(const std::string §ion, + const std::string &lang) +{} + +void SPICEConsoleAPI::SetUsbFilter(const std::string &filter) +{} + +int SPICEConsoleAPI::ConnectedStatus() +{ + return -1; +} + /* attribute string SSLChannels; */ std::string SPICEConsoleAPI::get_SSLChannels() const { diff --git a/SPICEConsoleAPI.h b/SPICEConsoleAPI.h index eece90a..12c9887 100644 --- a/SPICEConsoleAPI.h +++ b/SPICEConsoleAPI.h @@ -31,6 +31,11 @@ public: SPICEConsoleAPI(const SPICEConsolePtr& plugin, const FB::BrowserHostPtr& host) : m_plugin(plugin), m_host(host) { + registerMethod("connect", make_method(this, &SPICEConsoleAPI::connect)); + registerMethod("show", make_method(this, &SPICEConsoleAPI::show)); + registerMethod("disconnect", make_method(this, &SPICEConsoleAPI::disconnect)); + registerMethod("SetLanguageStrings", make_method(this, &SPICEConsoleAPI::SetLanguageStrings)); + registerMethod("ConnectedStatus", make_method(this, &SPICEConsoleAPI::ConnectedStatus)); registerProperty("SSLChannels", make_property(this, @@ -71,6 +76,14 @@ public: SPICEConsolePtr getPlugin(); + // Methods + void connect(); + void show(); + void disconnect(); + void SetLanguageStrings(const std::string §ion, + const std::string &lang); + void SetUsbFilter(const std::string &filter); + int ConnectedStatus(); // Properties std::string get_SSLChannels() const; |