00001 /* 00002 * Copyright Staffan Gimåker 2008-2009. 00003 * 00004 * --- 00005 * 00006 * Distributed under the Boost Software License, Version 1.0. 00007 * (See accompanying file LICENSE_1_0.txt or copy at 00008 * http://www.boost.org/LICENSE_1_0.txt) 00009 */ 00010 00011 #ifndef PEEKABOT_CLIENT_LABEL_PROXY_HH_INCLUDED 00012 #define PEEKABOT_CLIENT_LABEL_PROXY_HH_INCLUDED 00013 00014 00015 #include "ScalableProxy.hh" 00016 00017 00018 namespace peekabot 00019 { 00020 namespace client 00021 { 00025 class PEEKABOT_API LabelProxyBase : public ScalableProxyBase 00026 { 00027 public: 00028 LabelProxyBase(); 00029 00030 LabelProxyBase(const LabelProxyBase &p); 00031 00035 DelayedDispatch set_text(const std::string &text); 00036 00042 DelayedDispatch set_alignment(TextAlignment alignment); 00043 }; 00044 00045 00053 class PEEKABOT_API LabelProxy : public LabelProxyBase 00054 { 00055 public: 00056 LabelProxy(); 00057 00058 LabelProxy(const LabelProxyBase &p); 00059 00060 LabelProxy &operator=(const LabelProxy &p); 00061 00062 LabelProxy &operator=(const LabelProxyBase &p); 00063 00067 DelayedDispatch assign(const ObjectProxyBase &p); 00068 00072 DelayedDispatch assign( 00073 PeekabotClient &client, 00074 const std::string &path); 00075 00080 DelayedDispatch assign( 00081 const ObjectProxyBase &parent, 00082 const std::string &rel_path); 00083 00096 DelayedDispatch add( 00097 PeekabotClient &client, 00098 const std::string &path, 00099 NameConflictPolicy conflict_policy = AUTO_ENUMERATE_ON_CONFLICT); 00100 00113 DelayedDispatch add( 00114 const ObjectProxyBase &parent, 00115 const std::string &name, 00116 NameConflictPolicy conflict_policy = AUTO_ENUMERATE_ON_CONFLICT); 00117 }; 00118 } 00119 } 00120 00121 00122 #endif // PEEKABOT_CLIENT_LABEL_PROXY_HH_INCLUDED
1.7.1