libkcal
attachmenthandler.h
Go to the documentation of this file.
00001 /* 00002 This file is part of the kcal library. 00003 00004 Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 */ 00029 #ifndef KCAL_ATTACHMENTHANDLER_H 00030 #define KCAL_ATTACHMENTHANDLER_H 00031 00032 class TQString; 00033 class TQWidget; 00034 00035 namespace KCal { 00036 00037 class Attachment; 00038 class Incidence; 00039 class ScheduleMessage; 00040 00047 namespace AttachmentHandler { 00048 00058 Attachment *find( TQWidget *parent, const TQString &attachmentName, Incidence *incidence ); 00059 00070 Attachment *find( TQWidget *parent, const TQString &attachmentName, ScheduleMessage *message ); 00071 00081 Attachment *find( TQWidget *parent, const TQString &attachmentName, const TQString &uid ); 00082 00091 bool view( TQWidget *parent, Attachment *attachment ); 00092 00103 bool view( TQWidget *parent, const TQString &attachmentName, Incidence *incidence ); 00104 00115 bool view( TQWidget *parent, const TQString &attachmentName, const TQString &uid ); 00116 00127 bool view( TQWidget *parent, const TQString &attachmentName, ScheduleMessage *message ); 00128 00137 bool saveAs( TQWidget *parent, Attachment *attachment ); 00138 00149 bool saveAs( TQWidget *parent, const TQString &attachmentName, Incidence *incidence ); 00150 00161 bool saveAs( TQWidget *parent, const TQString &attachmentName, const TQString &uid ); 00162 00173 bool saveAs( TQWidget *parent, const TQString &attachmentName, ScheduleMessage *message ); 00174 } 00175 00176 } 00177 00178 #endif