summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-09-27 21:39:28 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2012-09-27 22:26:55 +0200
commit99adfd692726106fbae2674b8d2a2296bfa1d4bc (patch)
treeb6ec570454d599e78141cf8c2cfdc0b5906f6b4a
parent78db47015cd674e759688f75f11aa6ca4c599592 (diff)
Remove sample properties
-rw-r--r--SPICEConsoleAPI.cpp17
-rw-r--r--SPICEConsoleAPI.h19
2 files changed, 0 insertions, 36 deletions
diff --git a/SPICEConsoleAPI.cpp b/SPICEConsoleAPI.cpp
index 810269d..078fa7a 100644
--- a/SPICEConsoleAPI.cpp
+++ b/SPICEConsoleAPI.cpp
@@ -43,23 +43,6 @@ SPICEConsolePtr SPICEConsoleAPI::getPlugin()
return plugin;
}
-// Read/Write property testString
-std::string SPICEConsoleAPI::get_testString()
-{
- return m_testString;
-}
-
-void SPICEConsoleAPI::set_testString(const std::string& val)
-{
- m_testString = val;
-}
-
-// Read-only property version
-std::string SPICEConsoleAPI::get_version()
-{
- return FBSTRING_PLUGIN_VERSION;
-}
-
void SPICEConsoleAPI::testEvent()
{
fire_test();
diff --git a/SPICEConsoleAPI.h b/SPICEConsoleAPI.h
index 2864e46..d32c8e6 100644
--- a/SPICEConsoleAPI.h
+++ b/SPICEConsoleAPI.h
@@ -33,17 +33,6 @@ public:
{
registerMethod("echo", make_method(this, &SPICEConsoleAPI::echo));
registerMethod("testEvent", make_method(this, &SPICEConsoleAPI::testEvent));
-
- // Read-write property
- registerProperty("testString",
- make_property(this,
- &SPICEConsoleAPI::get_testString,
- &SPICEConsoleAPI::set_testString));
-
- // Read-only property
- registerProperty("version",
- make_property(this,
- &SPICEConsoleAPI::get_version));
}
///////////////////////////////////////////////////////////////////////////////
@@ -57,13 +46,6 @@ public:
SPICEConsolePtr getPlugin();
- // Read/Write property ${PROPERTY.ident}
- std::string get_testString();
- void set_testString(const std::string& val);
-
- // Read-only property ${PROPERTY.ident}
- std::string get_version();
-
// Method echo
FB::variant echo(const FB::variant& msg);
@@ -78,7 +60,6 @@ private:
SPICEConsoleWeakPtr m_plugin;
FB::BrowserHostPtr m_host;
- std::string m_testString;
};
#endif // H_SPICEConsoleAPI