diff --git a/akonadi/tests/testrunner/CMakeLists.txt b/akonadi/tests/testrunner/CMakeLists.txt index 66b434d8b..f40e2f8e0 100644 --- a/akonadi/tests/testrunner/CMakeLists.txt +++ b/akonadi/tests/testrunner/CMakeLists.txt @@ -1,54 +1,47 @@ project (akonaditest) include_directories( ${CMAKE_SOURCE_DIR}/kabc ${CMAKE_SOURCE_DIR}/kcal ${CMAKE_SOURCE_DIR}/akonadi ${CMAKE_BINARY_DIR}/kabc ${CMAKE_BINARY_DIR}/kcal ${CMAKE_BINARY_DIR}/akonadi ${CMAKE_CURRENT_SOURCE_DIR} ${Boost_INCLUDE_DIR} ${AKONADI_INCLUDE_DIR} ${KDE4_INCLUDES} ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" ) set(akonaditest_SRCS main.cpp - akonaditesting.cpp - dao.cpp - item.cpp - itemfactory.cpp - calitem.cpp - vcarditem.cpp - feeditem.cpp setup.cpp configreader.cpp config.cpp shellscript.cpp symbols.cpp testrunner.cpp ) kde4_add_executable(akonaditest NOGUI ${akonaditest_SRCS}) target_link_libraries(akonaditest akonadi-kde kabc kcal syndication ${KDE4_KDEUI_LIBS} ${Boost_LIBRARIES} ${KDE4_AKONADI_LIBS} ${KDE4_KABC_LIBS} ${KDE4_KCAL_LIBS} ${KDE4_SYNDICATION_LIBS} ${KDE4_KDECORE_LIBS} ${QT_QTCORE_LIBRARY} ${QT_QTXML_LIBRARY} ${QT_QTDBUS_LIBRARY} ) install(TARGETS akonaditest ${INSTALL_TARGETS_DEFAULT_ARGS}) diff --git a/akonadi/tests/testrunner/akonaditesting.cpp b/akonadi/tests/testrunner/akonaditesting.cpp deleted file mode 100644 index 3edbc5a91..000000000 --- a/akonadi/tests/testrunner/akonaditesting.cpp +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#include "akonaditesting.h" -#include "dao.h" -#include "item.h" -#include "itemfactory.h" -#include "config.h" - -#include -#include - -#include -#include - -#include - -AkonadiTesting::AkonadiTesting( const QString &configFileName ) -{ - Q_UNUSED( configFileName ) // TODO use this if !isNull() -} - -AkonadiTesting::AkonadiTesting() -{ -} - -AkonadiTesting::~AkonadiTesting() -{ -} - -void AkonadiTesting::insertItem( const QString &fileName, const QString &collectionName ) -{ - ItemFactory factory; - DAO dao; - - const Akonadi::Collection collection = dao.collectionByName( collectionName ); - - std::auto_ptr item(factory.createItem( fileName )); - - foreach ( const Akonadi::Item &akonadItem, item->items() ) { - if ( dao.insertItem( akonadItem, collection ) ) { - qDebug()<<"Item loaded to Akonadi"; - } else { - qDebug()<<"Item can not be loaded"; - } - } -} - -void AkonadiTesting::insertItemFromList() -{ - const Config *config = Config::instance(); - QPair configItem; - - foreach (configItem, config->itemConfig() ) { - insertItem( configItem.first, configItem.second ); - } -} diff --git a/akonadi/tests/testrunner/akonaditesting.h b/akonadi/tests/testrunner/akonaditesting.h deleted file mode 100644 index 7e128d35f..000000000 --- a/akonadi/tests/testrunner/akonaditesting.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#ifndef AKONADITESTING_H -#define AKONADITESTING_H - -#include - -class AkonadiTesting -{ - public: - AkonadiTesting( const QString &fileName ); - AkonadiTesting(); - ~AkonadiTesting(); - - void insertItem( const QString &fileName, const QString &collectionName ); - void insertItemFromList(); -}; - -#endif diff --git a/akonadi/tests/testrunner/calitem.cpp b/akonadi/tests/testrunner/calitem.cpp deleted file mode 100644 index a938f5d21..000000000 --- a/akonadi/tests/testrunner/calitem.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - - -#include "calitem.h" -#include "item.h" - -#include -#include -#include -#include - -typedef boost::shared_ptr IncidencePtr; - -CalItem::CalItem( const QString &fileName, const QString &mimeType ) - : Item( mimeType ) -{ - KCal::CalendarLocal calendarlocal( KDateTime::UTC ); - - if ( calendarlocal.load( fileName ) ) { - KCal::Incidence::List incidence = calendarlocal.rawIncidences(); - for ( int i = 0; i < incidence.size(); i++ ) { - Akonadi::Item item; - item.setMimeType( mMimeType ); - item.setPayload( IncidencePtr( incidence.at( i )->clone() ) ); - mItems.append( item ); - } - } -} diff --git a/akonadi/tests/testrunner/calitem.h b/akonadi/tests/testrunner/calitem.h deleted file mode 100644 index ca435b190..000000000 --- a/akonadi/tests/testrunner/calitem.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - - -#ifndef CALITEM_H -#define CALITEM_H - -#include "item.h" - -class CalItem: public Item -{ - public: - CalItem( const QString &fileName, const QString &mimeType ); -}; - -#endif diff --git a/akonadi/tests/testrunner/dao.cpp b/akonadi/tests/testrunner/dao.cpp deleted file mode 100644 index 7ff1bfe70..000000000 --- a/akonadi/tests/testrunner/dao.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#include "dao.h" - -#include -#include - -Akonadi::Collection::List DAO::collections() const -{ - Akonadi::CollectionFetchJob *job = new Akonadi::CollectionFetchJob( Akonadi::Collection::root(), - Akonadi::CollectionFetchJob::Recursive ); - job->exec(); - - return job->collections(); -} - -Akonadi::Collection DAO::collectionByName( const QString &collectionName ) const -{ - const Akonadi::Collection::List collectionList = collections(); - - foreach ( const Akonadi::Collection &collection, collectionList ) { - if ( collectionName == collection.name() ) - return collection; - } - - return Akonadi::Collection(); -} - -bool DAO::insertItem( const Akonadi::Item &item, const Akonadi::Collection &collection ) -{ - Akonadi::ItemCreateJob *job = new Akonadi::ItemCreateJob( item, collection ); - - return job->exec(); -} diff --git a/akonadi/tests/testrunner/dao.h b/akonadi/tests/testrunner/dao.h deleted file mode 100644 index b3a095348..000000000 --- a/akonadi/tests/testrunner/dao.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#ifndef DAO_H -#define DAO_H - -#include -#include - -class DAO -{ - public: - bool insertItem( const Akonadi::Item &item, const Akonadi::Collection &collection ); - Akonadi::Collection::List collections() const; - Akonadi::Collection collectionByName( const QString &collectionName ) const; -}; - -#endif diff --git a/akonadi/tests/testrunner/feeditem.cpp b/akonadi/tests/testrunner/feeditem.cpp deleted file mode 100644 index a52656df9..000000000 --- a/akonadi/tests/testrunner/feeditem.cpp +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#include "feeditem.h" - -#include -#include -#include -#include -#include - -#include -#include - - -FeedItem::FeedItem( const QString &fileName, const QString &mimeType ) - : Item( mimeType ) -{ - KUrl url; - if ( !KUrl::isRelativeUrl( fileName ) ) - url = KUrl( fileName ); - else - url = KUrl( QLatin1String( "file://" ) + QDir::currentPath() + QLatin1Char( '/' ), fileName ); - - Syndication::Loader* loader = Syndication::Loader::create( this, - SLOT( feedLoaded( Syndication::Loader*, - Syndication::FeedPtr, - Syndication::ErrorCode ) ) ); - loader->loadFrom( url ); - - QEventLoop *test = new QEventLoop( this ); - while( test->processEvents( QEventLoop::WaitForMoreEvents ) ) {} //workaround -} - -void FeedItem::feedLoaded( Syndication::Loader* loader, - Syndication::FeedPtr feed, - Syndication::ErrorCode error ) -{ - Q_UNUSED( loader ) - if ( error != Syndication::Success ) - return; - - foreach ( const Syndication::ItemPtr &itemptr, feed->items() ) { - Akonadi::Item item; - item.setMimeType( mMimeType ); - item.setPayload( itemptr ); - mItems.append( item ); - } -} diff --git a/akonadi/tests/testrunner/feeditem.h b/akonadi/tests/testrunner/feeditem.h deleted file mode 100644 index 53ac36249..000000000 --- a/akonadi/tests/testrunner/feeditem.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#ifndef FEEDITEM_H -#define FEEDITEM_H - -#include "item.h" - -#include - -#include - -class FeedItem : public QObject, public Item -{ - Q_OBJECT - - public: - FeedItem( const QString &fileName, const QString &mimeType ); - - private Q_SLOTS: - void feedLoaded( Syndication::Loader* loader, - Syndication::FeedPtr feed, - Syndication::ErrorCode error ); -}; - -#endif diff --git a/akonadi/tests/testrunner/item.cpp b/akonadi/tests/testrunner/item.cpp deleted file mode 100644 index e4eedb5b7..000000000 --- a/akonadi/tests/testrunner/item.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#include "item.h" - -Item::Item( const QString &mimetype ) -{ - mMimeType = mimetype; -} - -Akonadi::Item::List Item::items() const -{ - return mItems; -} diff --git a/akonadi/tests/testrunner/item.h b/akonadi/tests/testrunner/item.h deleted file mode 100644 index c1e86a6af..000000000 --- a/akonadi/tests/testrunner/item.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#ifndef ITEM_H -#define ITEM_H - -#include -#include - -#include - -class Item -{ - public: - Item( const QString &mimetype ); - Akonadi::Item::List items() const; - virtual ~Item() {}; - protected: - Akonadi::Item::List mItems; - QString mMimeType; - Akonadi::Collection mCollection; -}; - -#endif diff --git a/akonadi/tests/testrunner/itemfactory.cpp b/akonadi/tests/testrunner/itemfactory.cpp deleted file mode 100644 index 3044f40dc..000000000 --- a/akonadi/tests/testrunner/itemfactory.cpp +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#include "itemfactory.h" - -#include "calitem.h" -#include "feeditem.h" -#include "vcarditem.h" - -Item *ItemFactory::createItem( const QString &fileName ) -{ - if ( fileName.endsWith( QLatin1String( ".vcf" ) ) ) { - return new VCardItem( fileName, QLatin1String( "text/vcard" ) ); - } else if ( fileName.endsWith( QLatin1String( ".ics" ) ) ) { - return new CalItem( fileName, QLatin1String( "text/calendar" ) ); - } else if ( fileName.endsWith( QLatin1String( ".xml" ) ) ) { - return new FeedItem( fileName, QLatin1String( "application/rss+xml" ) ); - } - - return 0; -} diff --git a/akonadi/tests/testrunner/itemfactory.h b/akonadi/tests/testrunner/itemfactory.h deleted file mode 100644 index ed3e6cbed..000000000 --- a/akonadi/tests/testrunner/itemfactory.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#ifndef ITEMFACTORY_H -#define ITEMFACTORY_H - -#include "item.h" - -class ItemFactory -{ - public: - Item* createItem( const QString &fileName ); -}; - -#endif diff --git a/akonadi/tests/testrunner/main.cpp b/akonadi/tests/testrunner/main.cpp index 0877e9950..71ba226b5 100644 --- a/akonadi/tests/testrunner/main.cpp +++ b/akonadi/tests/testrunner/main.cpp @@ -1,123 +1,117 @@ /* * * Copyright (c) 2008 Igor Trindade Oliveira * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see . */ -#include "akonaditesting.h" #include "config.h" #include "setup.h" #include "shellscript.h" #include "testrunner.h" #include #include #include #include #include static SetupTest *setup = 0; static TestRunner *runner = 0; void sigHandler( int signal ) { kDebug() << "Received signal" << signal; static int sigCounter = 0; if ( sigCounter == 0 ) { // try clean shutdown if ( runner ) runner->terminate(); if ( setup ) setup->shutdown(); } else if ( sigCounter == 1 ) { // force shutdown if ( setup ) setup->shutdownHarder(); } else { // give up and just exit exit( 255 ); } ++sigCounter; } int main( int argc, char **argv ) { KAboutData aboutdata( "akonadi-TES", 0, ki18n( "Akonadi Testing Environment Setup" ), "1.0", ki18n( "Setup Environmnet" ), KAboutData::License_GPL, ki18n( "(c) 2008 Igor Trindade Oliveira" ) ); KCmdLineArgs::init( argc, argv, &aboutdata ); KCmdLineOptions options; options.add( "c" ).add( "config ", ki18n( "Configuration file to open" ), "config.xml" ); options.add( "!+[test]", ki18n( "Test to run automatically, interactive if none specified" ) ); options.add("testenv ", ki18n("Path where testenvironment would be saved")); KCmdLineArgs::addCmdLineOptions( options ); KApplication app; const KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); if ( args->isSet( "config" ) ) Config::instance( args->getOption( "config" ) ); #ifdef Q_OS_UNIX signal( SIGINT, sigHandler ); signal( SIGQUIT, sigHandler ); #endif setup = new SetupTest(); if ( !setup->startAkonadiDaemon() ) { delete setup; return 1; } - - AkonadiTesting *testing = new AkonadiTesting(); - - testing->insertItemFromList(); - + ShellScript *sh = new ShellScript(); if( args->isSet("testenv")) sh->makeShellScript( args->getOption("testenv")); else sh->makeShellScript( setup->basePath() + "testenvironment.sh" ); if ( args->count() > 0 ) { QStringList testArgs; for ( int i = 0; i < args->count(); ++i ) testArgs << args->arg( i ); runner = new TestRunner( testArgs ); QObject::connect( setup, SIGNAL( setupDone() ), runner, SLOT( run() ) ); QObject::connect( runner, SIGNAL( finished() ), setup, SLOT( shutdown() ) ); } int exitCode = app.exec(); if ( runner ) { exitCode += runner->exitCode(); delete runner; } Config::destroyInstance(); - delete testing; delete setup; setup = 0; delete sh; return exitCode; } diff --git a/akonadi/tests/testrunner/vcarditem.cpp b/akonadi/tests/testrunner/vcarditem.cpp deleted file mode 100644 index 5b9cdfb01..000000000 --- a/akonadi/tests/testrunner/vcarditem.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - - -#include "vcarditem.h" - -#include -#include - -#include - -VCardItem::VCardItem( const QString &fileName, const QString &mimetype ) - : Item( mimetype ) -{ - KABC::VCardConverter converter; - - QFile file( fileName ); - file.open( QIODevice::ReadOnly ); - - const QByteArray data = file.readAll(); - const KABC::Addressee::List addressees = converter.parseVCards( data ); - - foreach ( const KABC::Addressee &addressee, addressees ) { - Akonadi::Item item; - item.setMimeType( mimetype ); - item.setPayload( addressee ); - mItems.append( item ); - } -} diff --git a/akonadi/tests/testrunner/vcarditem.h b/akonadi/tests/testrunner/vcarditem.h deleted file mode 100644 index 74d825b75..000000000 --- a/akonadi/tests/testrunner/vcarditem.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2008 Igor Trindade Oliveira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#ifndef VCARDITEM_H -#define VCARDITEM_H - -#include "item.h" - -class VCardItem : public Item -{ - public: - VCardItem( const QString &fileName, const QString &mimetype ); -}; - -#endif