summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-09-29 14:59:31 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2012-10-02 23:09:03 +0200
commit71360e3837b6f5a222c5441262f96bdcb803af16 (patch)
tree32f24d0a4bb9663debd4e637ef32d4ed4cfb6e22
parent2857a37b448ba6f8f2a94ca83fca50d4e2f87065 (diff)
Implement SetUSBFilter
This really should be an attribute...
-rw-r--r--SPICEConsoleAPI.cpp4
-rw-r--r--SPICEConsoleAPI.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/SPICEConsoleAPI.cpp b/SPICEConsoleAPI.cpp
index 030accd..7774308 100644
--- a/SPICEConsoleAPI.cpp
+++ b/SPICEConsoleAPI.cpp
@@ -51,7 +51,9 @@ void SPICEConsoleAPI::SetLanguageStrings(const std::string &section,
}
void SPICEConsoleAPI::SetUsbFilter(const std::string &filter)
-{}
+{
+ m_usb_filter = filter;
+}
int SPICEConsoleAPI::ConnectedStatus()
{
diff --git a/SPICEConsoleAPI.h b/SPICEConsoleAPI.h
index e4125aa..c0dce9a 100644
--- a/SPICEConsoleAPI.h
+++ b/SPICEConsoleAPI.h
@@ -96,6 +96,7 @@ private:
SPICEConsoleWeakPtr m_plugin;
FB::BrowserHostPtr m_host;
std::map<std::string, std::string> m_languages;
+ std::string m_usb_filter;
/* Properties */
std::string m_SSLChannels;