KVIrc
5.2.6
Developer APIs
src
kvirc
kvs
tree
KviKvsTreeNodeData.h
Go to the documentation of this file.
1
#ifndef _KVI_KVS_TREENODE_DATA_H_
2
#define _KVI_KVS_TREENODE_DATA_H_
3
//=============================================================================
4
//
5
// File : KviKvsTreeNodeData.h
6
// Creation date : Sun 05 Oct 2003 21.42 CEST by Szymon Stefanek
7
//
8
// This file is part of the KVIrc IRC client distribution
9
// Copyright (C) 2003-2010 Szymon Stefanek (pragma at kvirc dot net)
10
//
11
// This program is FREE software. You can redistribute it and/or
12
// modify it under the terms of the GNU General Public License
13
// as published by the Free Software Foundation; either version 2
14
// of the License, or (at your option) any later version.
15
//
16
// This program is distributed in the HOPE that it will be USEFUL,
17
// but WITHOUT ANY WARRANTY; without even the implied warranty of
18
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
// See the GNU General Public License for more details.
20
//
21
// You should have received a copy of the GNU General Public License
22
// along with this program. If not, write to the Free Software Foundation,
23
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
//
25
//=============================================================================
26
27
#include "
KviKvsTreeNodeBase.h
"
28
#include "
KviKvsVariant.h
"
29
#include "
KviKvsRunTimeContext.h
"
30
#include "
KviKvsRWEvaluationResult.h
"
31
32
class
KviKvsObject
;
33
34
class
KVIRC_API
KviKvsTreeNodeData
:
public
KviKvsTreeNode
35
{
36
public
:
37
KviKvsTreeNodeData
(
const
QChar * pLocation);
38
~KviKvsTreeNodeData
();
39
40
protected
:
41
const
QChar *
m_pEndingLocation
;
// note that this MIGHT be not set (it's set for sure for anything parsed by parseCommaSeparatedParameter()
42
public
:
43
void
setEndingLocation
(
const
QChar * pEndingLocation) { m_pEndingLocation = pEndingLocation; };
44
const
QChar *
endingLocation
() {
return
m_pEndingLocation; };
45
46
virtual
bool
evaluateReadOnly(
KviKvsRunTimeContext
* c,
KviKvsVariant
* pBuffer);
47
virtual
KviKvsRWEvaluationResult
* evaluateReadWrite(
KviKvsRunTimeContext
* c);
// error by default
48
49
virtual
bool
evaluateReadOnlyInObjectScope(
KviKvsObject
*
o
,
KviKvsRunTimeContext
* c,
KviKvsVariant
* pBuffer);
// error by default
50
virtual
KviKvsRWEvaluationResult
* evaluateReadWriteInObjectScope(
KviKvsObject
*
o
,
KviKvsRunTimeContext
* c);
// error by default
51
52
virtual
void
contextDescription
(QString &
szBuffer
);
53
virtual
void
dump
(
const
char
* prefix);
54
55
virtual
bool
isReadOnly();
// true by default
56
virtual
bool
canEvaluateToObjectReference();
// no by default
57
virtual
bool
isFunctionCall();
// no by default
58
virtual
bool
canEvaluateInObjectScope();
// no by default
59
60
virtual
bool
convertStringConstantToNumeric();
// this does nothing by default and is reimplemented only by KviKvsTreeNodeConstantData
61
};
62
63
#endif
KviKvsRWEvaluationResult.h
KviKvsRunTimeContext.h
KviKvsTreeNodeBase.h
Treenode handling.
KviKvsVariant.h
Handling of variant data type in KVS.
KviKvsObject
Definition
KviKvsObject.h:51
KviKvsRWEvaluationResult
Definition
KviKvsRWEvaluationResult.h:31
KviKvsRunTimeContext
Definition
KviKvsRunTimeContext.h:104
KviKvsTreeNodeData
Definition
KviKvsTreeNodeData.h:35
KviKvsTreeNodeData::endingLocation
const QChar * endingLocation()
Definition
KviKvsTreeNodeData.h:44
KviKvsTreeNodeData::~KviKvsTreeNodeData
~KviKvsTreeNodeData()
KviKvsTreeNodeData::setEndingLocation
void setEndingLocation(const QChar *pEndingLocation)
Definition
KviKvsTreeNodeData.h:43
KviKvsTreeNodeData::m_pEndingLocation
const QChar * m_pEndingLocation
Definition
KviKvsTreeNodeData.h:41
KviKvsTreeNode
Treenode class.
Definition
KviKvsTreeNodeBase.h:41
KviKvsTreeNode::contextDescription
virtual void contextDescription(QString &szBuffer)=0
Sets the buffer.
KviKvsTreeNode::dump
virtual void dump(const char *prefix)=0
Dumps the tree.
KviKvsVariant
This class defines a new data type which contains variant data.
Definition
KviKvsVariant.h:352
o
#define o
Definition
detector.cpp:80
KVIRC_API
#define KVIRC_API
Definition
kvi_settings.h:127
szBuffer
char szBuffer[4096]
Definition
winamp.cpp:77
Generated on Mon Nov 18 2024 15:22:28 for KVIrc by
1.12.0