lib: added implicit ctor converter from DatabaseDatabase to DBListType
[barry/progweb.git] / desktop / src / blistevo.cc
blob0807bbcd0dbedf24031438c0d8960e595dc1e8e5
1 ///
2 /// \file blistevo.cc
3 /// Command line test tool for EvoSources
4 ///
6 /*
7 Copyright (C) 2011-2012, Net Direct Inc. (http://www.netdirect.ca/)
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) 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.
18 See the GNU General Public License in the COPYING file at the
19 root directory of this project for more details.
22 #include "EvoSources.h"
23 #include <iostream>
25 using namespace std;
27 void DumpItems(const EvoSources::List &list)
29 EvoSources::List::const_iterator i;
30 for( i = list.begin(); i != list.end(); ++i ) {
31 cout << " "
32 << i->m_GroupName << ", "
33 << i->m_SourceName << ", "
34 << i->m_SourcePath << endl;
38 int main()
40 EvoSources es;
41 cout << "\nAddressbook:\n------------\n";
42 DumpItems(es.GetAddressBook());
43 cout << "\nEvents:\n-------\n";
44 DumpItems(es.GetEvents());
45 cout << "\nTasks:\n------\n";
46 DumpItems(es.GetTasks());
47 cout << "\nMemos:\n------\n";
48 DumpItems(es.GetMemos());