• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.9.1 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • akonadi
qtest_akonadi.h
1 /* This file is based on qtest_kde.h from kdelibs
2  Copyright (C) 2006 David Faure <faure@kde.org>
3  Copyright (C) 2009 Volker Krause <vkrause@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef QTEST_AKONADI_H
21 #define QTEST_AKONADI_H
22 
23 #include <qtest_kde.h>
24 
39 #define QTEST_AKONADIMAIN(TestObject, flags) \
40 int main(int argc, char *argv[]) \
41 { \
42  setenv( "LC_ALL", "C", 1); \
43  unsetenv( "KDE_COLOR_DEBUG" ); \
44  KAboutData aboutData( QByteArray( "qttest" ), QByteArray(), ki18n( "KDE Test Program" ), QByteArray( "version" ) ); \
45  KDEMainFlags mainFlags = flags; \
46  KComponentData cData(&aboutData); \
47  QApplication app( argc, argv, (mainFlags & GUI) != 0 ); \
48  app.setApplicationName( QLatin1String( "qttest" ) ); \
49  qRegisterMetaType<KUrl>(); /*as done by kapplication*/ \
50  qRegisterMetaType<KUrl::List>(); \
51  TestObject tc; \
52  KGlobal::ref(); /* don't quit qeventloop after closing a mainwindow */ \
53  return QTest::qExec( &tc, argc, argv ); \
54 }
55 
61 #define AKVERIFYEXEC( job ) \
62  QVERIFY2( job->exec(), job->errorString().toUtf8().constData() )
63 
64 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Sep 24 2012 09:06:27 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs-4.9.1 API Reference

Skip menu "kdepimlibs-4.9.1 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal