summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-07-04 17:05:06 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-07-04 17:05:06 +0100
commit59fb8ccf9bc72556acd4e31413ed651020463751 (patch)
tree4ca010f3cc38d2951aa5f9553fdf414087dd68e9
parentUpdate expectations of tmdb mock api (diff)
downloadp2pvr-59fb8ccf9bc72556acd4e31413ed651020463751.tar.bz2
p2pvr-59fb8ccf9bc72556acd4e31413ed651020463751.tar.xz
p2pvr-59fb8ccf9bc72556acd4e31413ed651020463751.zip
Add getPrefix required by Ice 3.6p2pvr-0.1.0.1
-rw-r--r--p2pvr/daemonbase/p2LoggerWrapper.cpp6
-rw-r--r--p2pvr/daemonbase/p2LoggerWrapper.h11
2 files changed, 12 insertions, 5 deletions
diff --git a/p2pvr/daemonbase/p2LoggerWrapper.cpp b/p2pvr/daemonbase/p2LoggerWrapper.cpp
index 60ec191..419caa2 100644
--- a/p2pvr/daemonbase/p2LoggerWrapper.cpp
+++ b/p2pvr/daemonbase/p2LoggerWrapper.cpp
@@ -37,3 +37,9 @@ P2LoggerWrapper::cloneWithPrefix(const std::string & p)
return new P2LoggerWrapper(prefix + "-" + p);
}
+std::string
+P2LoggerWrapper::getPrefix()
+{
+ return prefix;
+}
+
diff --git a/p2pvr/daemonbase/p2LoggerWrapper.h b/p2pvr/daemonbase/p2LoggerWrapper.h
index 8febda5..e8de1e8 100644
--- a/p2pvr/daemonbase/p2LoggerWrapper.h
+++ b/p2pvr/daemonbase/p2LoggerWrapper.h
@@ -7,12 +7,13 @@ class P2LoggerWrapper : public Ice::Logger {
public:
P2LoggerWrapper(const std::string & prefix = std::string());
- void print(const std::string & message);
- void trace(const std::string & cat, const std::string & message);
- void warning(const std::string & message);
- void error(const std::string & message);
+ void print(const std::string & message) override;
+ void trace(const std::string & cat, const std::string & message) override;
+ void warning(const std::string & message) override;
+ void error(const std::string & message) override;
- Ice::LoggerPtr cloneWithPrefix(const std::string & prefix);
+ Ice::LoggerPtr cloneWithPrefix(const std::string & prefix) override;
+ std::string getPrefix();
private:
const std::string prefix;