kpilot
null-conduit.h
Go to the documentation of this file.00001 #ifndef _NULL_NULL_CONDUIT_H 00002 #define _NULL_NULL_CONDUIT_H 00003 /* null-conduit.h KPilot 00004 ** 00005 ** Copyright (C) 2000-2001 by Adriaan de Groot 00006 ** 00007 ** This file is part of the NULL conduit, a conduit for KPilot that 00008 ** does nothing except add a log message to the Pilot's HotSync log. 00009 ** It is also intended as a programming example. 00010 */ 00011 00012 /* 00013 ** This program is free software; you can redistribute it and/or modify 00014 ** it under the terms of the GNU Lesser General Public License as published by 00015 ** the Free Software Foundation; either version 2.1 of the License, or 00016 ** (at your option) any later version. 00017 ** 00018 ** This program is distributed in the hope that it will be useful, 00019 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 ** GNU Lesser General Public License for more details. 00022 ** 00023 ** You should have received a copy of the GNU Lesser General Public License 00024 ** along with this program in a file called COPYING; if not, write to 00025 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00026 ** MA 02110-1301, USA. 00027 */ 00028 00029 /* 00030 ** Bug reports and questions can be sent to kde-pim@kde.org 00031 */ 00032 00033 #include "plugin.h" 00034 00035 class PilotRecord; 00036 class PilotDatabase; 00037 00045 class NullConduit : public ConduitAction 00046 { 00047 public: 00052 NullConduit(KPilotLink *, 00053 const char *name=0L, 00054 const QStringList &args = QStringList()); 00055 virtual ~NullConduit(); 00056 00057 protected: 00058 virtual bool exec(); 00059 00060 protected: 00061 PilotDatabase *fDatabase; 00062 bool fFailImmediately; 00063 }; 00064 00065 #endif