~ubuntu-branches/ubuntu/trusty/kvirc/trusty-proposed

« back to all changes in this revision

Viewing changes to src/kvirc/kvs/kvi_kvs_treenode_arrayreferenceassert.h

  • Committer: Bazaar Package Importer
  • Author(s): Kai Wasserbäch, Kai Wasserbäch, Raúl Sánchez Siles
  • Date: 2011-02-12 10:40:21 UTC
  • mfrom: (14.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110212104021-5mh4f75jlku20mnt
The combined "Twisted Experiment" and "Nocturnal Raid" release.

[ Kai Wasserbäch ]
* Synced to upstream's SVN revision 5467.
* debian/rules:
  - Added .PHONY line.
  - Resurrect -DMANUAL_REVISION, got lost somewhere and we build SVN
    revisions again.
  - Replace "-DWITH_NO_EMBEDDED_CODE=YES" with "-DWANT_CRYPTOPP=YES".
  - Change the remaining -DWITH/-DWITHOUT to the new -DWANT syntax.
* debian/control:
  - Removed DMUA, I'm a DD now.
  - Changed my e-mail address.
  - Removed unneeded relationships (no upgrades over two releases are
    supported).
  - Fix Suggests for kvirc-dbg.
  - kvirc-data: Make the "Suggests: kvirc" a Recommends, doesn't make much
    sense to install the -data package without the program.
* debian/source/local-options: Added with "unapply-patches".
* debian/kvirc.lintian-overrides: Updated to work for 4.1.1.
* debian/patches/21_make_shared-mime-info_B-D_superfluous.patch: Updated.
* debian/kvirc-data.install: Added .notifyrc.

[ Raúl Sánchez Siles ]
* Stating the right version where kvirc-data break and replace should happen.
* Fixing link to license file.
* Added French and Portuguese man pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _KVI_KVS_TREENODE_ARRAYREFERENCEASSERT_H_
2
 
#define _KVI_KVS_TREENODE_ARRAYREFERENCEASSERT_H_
3
 
//=============================================================================
4
 
//
5
 
//   File : kvi_kvs_treenode_arrayreferenceassert.h
6
 
//   Creation date : Thu 16 Oct 2003 23:46:12 by Szymon Stefanek
7
 
//
8
 
//   This file is part of the KVIrc IRC client distribution
9
 
//   Copyright (C) 2003-2008 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 opinion) 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
 
/**
28
 
* \file kvi_kvs_treenode_arrayreferenceassert.h
29
 
* \author Szymon Stefanek
30
 
* \brief Treenode array reference assert handling
31
 
*/
32
 
 
33
 
#include "kvi_settings.h"
34
 
#include "kvi_qstring.h"
35
 
#include "kvi_kvs_treenode_indirectdata.h"
36
 
 
37
 
class KviKvsRunTimeContext;
38
 
class KviKvsVariant;
39
 
class KviKvsRWEvaluationResult;
40
 
class KviKvsObject;
41
 
 
42
 
/**
43
 
* \class KviKvsTreeNodeArrayReferenceAssert
44
 
* \brief Treenode array reference assert class
45
 
*/
46
 
class KVIRC_API KviKvsTreeNodeArrayReferenceAssert : public KviKvsTreeNodeIndirectData
47
 
{
48
 
public:
49
 
        /**
50
 
        * \brief Constructs the treenode array reference assert object
51
 
        * \param pLocation The location char of the instruction
52
 
        * \param pSource The source data
53
 
        * \return KviKvsTreeNodeArrayReferenceAssert
54
 
        */
55
 
        KviKvsTreeNodeArrayReferenceAssert(const QChar * pLocation, KviKvsTreeNodeData * pSource);
56
 
 
57
 
        /**
58
 
        * \brief Destroys the treenode array reference assert object
59
 
        * \return KviKvsTreeNodeArrayElement
60
 
        */
61
 
        ~KviKvsTreeNodeArrayReferenceAssert();
62
 
protected:
63
 
 
64
 
public:
65
 
        /**
66
 
        * \brief Returns true if the array reference is read-only
67
 
        * \return bool
68
 
        */
69
 
        virtual bool isReadOnly();
70
 
 
71
 
        /**
72
 
        * \brief Sets the buffer as Array Reference Assert
73
 
        * \param szBuffer The buffer :)
74
 
        * \return void
75
 
        */
76
 
        virtual void contextDescription(QString & szBuffer);
77
 
 
78
 
        /**
79
 
        * \brief Dumps the tree
80
 
        * \param prefix The prefix of the instruction
81
 
        * \return void
82
 
        */
83
 
        virtual void dump(const char * prefix);
84
 
 
85
 
        /**
86
 
        * \brief Evaluates the array in read-only mode
87
 
        * \param c The context where the alias is bound to
88
 
        * \param pBuffer The data buffer
89
 
        * \return bool
90
 
        */
91
 
        virtual bool evaluateReadOnly(KviKvsRunTimeContext * c, KviKvsVariant * pBuffer);
92
 
 
93
 
        /**
94
 
        * \brief Evaluates the array in read-write mode
95
 
        * \param c The context where the alias is bound to
96
 
        * \return KviKvsRWEvaluationResult *
97
 
        */
98
 
        virtual KviKvsRWEvaluationResult * evaluateReadWrite(KviKvsRunTimeContext * c);
99
 
 
100
 
        /**
101
 
        * \brief Evaluates the array in read-only mode in the object scope
102
 
        * \param o The source object to evaluate
103
 
        * \param c The context where the array is bound to
104
 
        * \param pBuffer The data buffer
105
 
        * \return bool
106
 
        */
107
 
        virtual bool evaluateReadOnlyInObjectScope(KviKvsObject * o, KviKvsRunTimeContext * c, KviKvsVariant * pBuffer);
108
 
 
109
 
        /**
110
 
        * \brief Evaluates the array in read-write mode in the object scope
111
 
        * \param o The source object to evaluate
112
 
        * \param c The context where the array is bound to
113
 
        * \return KviKvsRWEvaluationResult *
114
 
        */
115
 
        virtual KviKvsRWEvaluationResult * evaluateReadWriteInObjectScope(KviKvsObject * o, KviKvsRunTimeContext * c);
116
 
};
117
 
 
118
 
#endif //_KVI_KVS_TREENODE_ARRAYREFERENCEASSERT_H_