1
//=============================================================================
3
// File : kvi_kvs_treenode_data.cpp
4
// Creation date : Sun 05 Oct 2003 21.52 CEST by Szymon Stefanek
6
// This file is part of the KVirc irc client distribution
7
// Copyright (C) 2003-2008 Szymon Stefanek (pragma at kvirc dot net)
9
// This program is FREE software. You can redistribute it and/or
10
// modify it under the terms of the GNU General Public License
11
// as published by the Free Software Foundation; either version 2
12
// of the License, or (at your opinion) any later version.
14
// This program is distributed in the HOPE that it will be USEFUL,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
// See the GNU General Public License for more details.
19
// You should have received a copy of the GNU General Public License
20
// along with this program. If not, write to the Free Software Foundation,
21
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
//=============================================================================
25
#include "kvi_kvs_treenode_data.h"
26
#include "kvi_locale.h"
29
KviKvsTreeNodeData::KviKvsTreeNodeData(const QChar * pLocation)
30
: KviKvsTreeNode(pLocation), m_pEndingLocation(0)
35
KviKvsTreeNodeData::~KviKvsTreeNodeData()
39
void KviKvsTreeNodeData::contextDescription(QString &szBuffer)
41
szBuffer = "Data Evaluation";
44
void KviKvsTreeNodeData::dump(const char * prefix)
46
qDebug("%s Data",prefix);
49
bool KviKvsTreeNodeData::isReadOnly()
54
bool KviKvsTreeNodeData::canEvaluateToObjectReference()
59
bool KviKvsTreeNodeData::canEvaluateInObjectScope()
64
bool KviKvsTreeNodeData::isFunctionCall()
69
bool KviKvsTreeNodeData::convertStringConstantToNumeric()
75
bool KviKvsTreeNodeData::canReleaseResult()
81
bool KviKvsTreeNodeData::evaluateReadOnly(KviKvsRunTimeContext * c,KviKvsVariant *)
83
c->error(this,__tr2qs_ctx("Internal error: pure virtual evaluateReadOnly called","kvs"));
87
KviKvsRWEvaluationResult * KviKvsTreeNodeData::evaluateReadWrite(KviKvsRunTimeContext * c)
89
c->error(this,__tr2qs_ctx("Internal error: trying to evaluate as read-write a read-only data location","kvs"));
94
bool KviKvsTreeNodeData::evaluateReadOnlyInObjectScope(KviKvsObject *,KviKvsRunTimeContext * c,KviKvsVariant * )
96
c->error(this,__tr2qs_ctx("Internal error: pure virtual evaluateReadOnlyInObjectScope called","kvs"));
100
KviKvsRWEvaluationResult * KviKvsTreeNodeData::evaluateReadWriteInObjectScope(KviKvsObject * ,KviKvsRunTimeContext * c)
102
c->error(this,__tr2qs_ctx("Internal error: trying to evaluate as read-write a read-only data location","kvs"));