aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/rlvextensions.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/rlvextensions.h')
-rw-r--r--linden/indra/newview/rlvextensions.h33
1 files changed, 24 insertions, 9 deletions
diff --git a/linden/indra/newview/rlvextensions.h b/linden/indra/newview/rlvextensions.h
index 5720ba0..3e3e75e 100644
--- a/linden/indra/newview/rlvextensions.h
+++ b/linden/indra/newview/rlvextensions.h
@@ -1,8 +1,23 @@
1/**
2 *
3 * Copyright (c) 2009-2010, Kitty Barnett
4 *
5 * The source code in this file is provided to you under the terms of the
6 * GNU General Public License, version 2.0, but WITHOUT ANY WARRANTY;
7 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
8 * PARTICULAR PURPOSE. Terms of the GPL can be found in doc/GPL-license.txt
9 * in this distribution, or online at http://www.gnu.org/licenses/gpl-2.0.txt
10 *
11 * By copying, modifying or distributing this software, you acknowledge that
12 * you have read and understood your obligations described above, and agree to
13 * abide by those obligations.
14 *
15 */
16
1#ifndef RLV_EXTENSIONS_H 17#ifndef RLV_EXTENSIONS_H
2#define RLV_EXTENSIONS_H 18#define RLV_EXTENSIONS_H
3 19
4#include "rlvhelper.h" 20#include "rlvcommon.h"
5#include "rlvevent.h"
6 21
7// ============================================================================ 22// ============================================================================
8/* 23/*
@@ -12,24 +27,24 @@
12 * 27 *
13 */ 28 */
14 29
15class RlvExtGetSet : public RlvObserver 30class RlvExtGetSet : public RlvCommandHandler
16{ 31{
17public: 32public:
18 RlvExtGetSet(); 33 RlvExtGetSet();
19 virtual ~RlvExtGetSet() {} 34 virtual ~RlvExtGetSet() {}
20 35
21 virtual BOOL onForceCommand(const RlvEvent& rlvEvent); 36 virtual bool onForceCommand(const LLUUID& idObj, const RlvCommand& rlvCmd, ERlvCmdRet& cmdRet);
22 virtual BOOL onReplyCommand(const RlvEvent& rlvEvent); 37 virtual bool onReplyCommand(const LLUUID& idObj, const RlvCommand& rlvCmd, ERlvCmdRet& cmdRet);
23protected: 38protected:
24 std::string onGetDebug(std::string strSetting); 39 std::string onGetDebug(std::string strSetting);
25 std::string onGetPseudoDebug(const std::string& strSetting); 40 std::string onGetPseudoDebug(const std::string& strSetting);
26 void onSetDebug(std::string strSetting, const std::string& strValue); 41 ERlvCmdRet onSetDebug(std::string strSetting, const std::string& strValue);
27 void onSetPseudoDebug(const std::string& strSetting, const std::string& strValue); 42 ERlvCmdRet onSetPseudoDebug(const std::string& strSetting, const std::string& strValue);
28 43
29 std::string onGetEnv(std::string strSetting); 44 std::string onGetEnv(std::string strSetting);
30 void onSetEnv(std::string strSetting, const std::string& strValue); 45 ERlvCmdRet onSetEnv(std::string strSetting, const std::string& strValue);
31 46
32 BOOL processCommand(const LLUUID& idObj, const RlvCommand& rlvCmd); 47 bool processCommand(const LLUUID& idObj, const RlvCommand& rlvCmd, ERlvCmdRet& eRet);
33 48
34public: 49public:
35 enum { DBG_READ = 0x01, DBG_WRITE = 0x02, DBG_PERSIST = 0x04, DBG_PSEUDO = 0x08 }; 50 enum { DBG_READ = 0x01, DBG_WRITE = 0x02, DBG_PERSIST = 0x04, DBG_PSEUDO = 0x08 };