blob: 0b29fbb3e25567a25764709bd83c6e8eeb9b298c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef DICTIONARY_MOCK_H
#define DICTIONARY_MOCK_H
#include <QtCore>
#include "../../src/dictionary/IDictionary.h"
#include "../../src/dictionary/TreeItem.h"
class MockDictionary: public TreeItem, public IDictionary
{
Q_OBJECT
public:
const TreeItem* parent() const { return NULL; }
const TreeItem* child(int) const { return NULL; }
int childCount() const { return 0; }
int columnCount() const { return 0; }
QVariant data(int) const { return QVariant(); }
int row() const { return 0; }
int topParentRow() const { return 0; }
const Field* field(int) const { return NULL; }
const Field* field(const QString) const { return NULL; }
int indexOfCardPack(CardPack*) const { return 0; }
void addCardPack(CardPack* aCardPack);
signals:
void entryChanged( int aEntryIx, int aFieldIx );
void entriesRemoved( int aIndex, int aNum );
};
#endif
|