2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Jussi Laitinen - jussi.laitinen@ixonos.com
7 Situare is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 version 2 as published by the Free Software Foundation.
11 Situare is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Situare; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22 #ifndef PERSONLISTVIEWSTUB_H
23 #define PERSONLISTVIEWSTUB_H
25 #include "../../src/ui/personlistview.h"
26 #include "listviewstub.h"
29 class PersonListViewStub : public StubBase
32 virtual void PersonListViewConstructor(QWidget *parent = 0);
33 virtual bool listItemClicked(ListItem *item);
36 void PersonListViewStub::PersonListViewConstructor(QWidget *parent)
41 bool PersonListViewStub::listItemClicked(ListItem *item)
43 QList<ParameterBase *> params;
44 params.append(new Parameter<ListItem *>(item));
45 stubMethodEntered("listItemClicked", params);
47 return stubReturnValue<bool>("listItemClicked");
50 //Create a stub instance
51 PersonListViewStub defaultPersonListViewStub;
52 PersonListViewStub *personListViewStub = &defaultPersonListViewStub;
54 PersonListView::PersonListView(QWidget *parent)
57 personListViewStub->PersonListViewConstructor(parent);
60 bool PersonListView::listItemClicked(ListItem *item)
62 return personListViewStub->listItemClicked(item);
65 #endif // PERSONLISTVIEWSTUB_H