akonadi
differencesalgorithminterface.h
00001 /* 00002 Copyright (c) 2010 KDAB 00003 Author: Tobias Koenig <tokoe@kde.org> 00004 00005 This library is free software; you can redistribute it and/or modify it 00006 under the terms of the GNU Library General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or (at your 00008 option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, but WITHOUT 00011 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to the 00017 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00018 02110-1301, USA. 00019 */ 00020 00021 #ifndef DIFFERENCESALGORITHMINTERFACE_P_H 00022 #define DIFFERENCESALGORITHMINTERFACE_P_H 00023 00024 #include <QtCore/QObject> 00025 00026 namespace Akonadi { 00027 00028 class AbstractDifferencesReporter; 00029 class Item; 00030 00037 class DifferencesAlgorithmInterface 00038 { 00039 public: 00043 virtual ~DifferencesAlgorithmInterface() {} 00044 00053 virtual void compare( AbstractDifferencesReporter *reporter, 00054 const Akonadi::Item &leftItem, 00055 const Akonadi::Item &rightItem ) = 0; 00056 }; 00057 00058 } 00059 00060 Q_DECLARE_INTERFACE( Akonadi::DifferencesAlgorithmInterface, "org.freedesktop.Akonadi.DifferencesAlgorithmInterface/1.0" ) 00061 00062 #endif