From 2fe82baa3cd7361c20892e3c208eb5904d54bd9d Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Wed, 14 Apr 2010 02:13:08 +0000 Subject: Remove final vestiges of old client API references from messaging and agent header files git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933842 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/include/qpid/management/ManagementObject.h | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'cpp/include/qpid/management') diff --git a/cpp/include/qpid/management/ManagementObject.h b/cpp/include/qpid/management/ManagementObject.h index 9538a3e831..da255d7879 100644 --- a/cpp/include/qpid/management/ManagementObject.h +++ b/cpp/include/qpid/management/ManagementObject.h @@ -21,11 +21,11 @@ * under the License. * */ +#include "qpid/CommonImportExport.h" -#include "qpid/sys/Time.h" #include "qpid/management/Mutex.h" -#include "qpid/CommonImportExport.h" #include "qpid/types/Variant.h" + #include #include @@ -158,11 +158,7 @@ protected: //typedef void (*writeSchemaCall_t) (qpid::framing::Buffer&); typedef void (*writeSchemaCall_t) (std::string&); - ManagementObject(Manageable* _core) : - createTime(uint64_t(qpid::sys::Duration(qpid::sys::now()))), - destroyTime(0), updateTime(createTime), configChanged(true), - instChanged(true), deleted(false), - coreObject(_core), forcePublish(false) {} + QPID_COMMON_EXTERN ManagementObject(Manageable* _core); virtual ~ManagementObject() {} virtual writeSchemaCall_t getWriteSchemaCall() = 0; @@ -201,12 +197,8 @@ protected: virtual bool hasInst() { return true; } inline void setForcePublish(bool f) { forcePublish = f; } inline bool getForcePublish() { return forcePublish; } - inline void setUpdateTime() { updateTime = (uint64_t(sys::Duration(sys::now()))); } - - inline void resourceDestroy() { - destroyTime = uint64_t (qpid::sys::Duration(qpid::sys::now())); - deleted = true; - } + QPID_COMMON_EXTERN void setUpdateTime(); + QPID_COMMON_EXTERN void resourceDestroy(); inline bool isDeleted() { return deleted; } inline void setFlags(uint32_t f) { flags = f; } inline uint32_t getFlags() { return flags; } -- cgit v1.2.1