libkcal

attachmenthandler.h
Go to the documentation of this file.
1/*
2 This file is part of the kcal library.
3
4 Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
29#ifndef KCAL_ATTACHMENTHANDLER_H
30#define KCAL_ATTACHMENTHANDLER_H
31
32class TQString;
33class TQWidget;
34
35namespace KCal {
36
37class Attachment;
38class Incidence;
39class ScheduleMessage;
40
47namespace AttachmentHandler {
48
58 Attachment *find( TQWidget *parent, const TQString &attachmentName, Incidence *incidence );
59
70 Attachment *find( TQWidget *parent, const TQString &attachmentName, ScheduleMessage *message );
71
81 Attachment *find( TQWidget *parent, const TQString &attachmentName, const TQString &uid );
82
91 bool view( TQWidget *parent, Attachment *attachment );
92
103 bool view( TQWidget *parent, const TQString &attachmentName, Incidence *incidence );
104
115 bool view( TQWidget *parent, const TQString &attachmentName, const TQString &uid );
116
127 bool view( TQWidget *parent, const TQString &attachmentName, ScheduleMessage *message );
128
137 bool saveAs( TQWidget *parent, Attachment *attachment );
138
149 bool saveAs( TQWidget *parent, const TQString &attachmentName, Incidence *incidence );
150
161 bool saveAs( TQWidget *parent, const TQString &attachmentName, const TQString &uid );
162
173 bool saveAs( TQWidget *parent, const TQString &attachmentName, ScheduleMessage *message );
174}
175
176}
177
178#endif
This class represents information related to an attachment.
Definition: attachment.h:35
This class provides the base class common to all calendar components.
Definition: incidence.h:48
This class provides an encapsulation of a scheduling message.
Definition: scheduler.h:45
bool view(TQWidget *parent, Attachment *attachment)
Launches a viewer on the specified attachment.
bool saveAs(TQWidget *parent, Attachment *attachment)
Saves the specified attachment to a file of the user's choice.
Attachment * find(TQWidget *parent, const TQString &attachmentName, Incidence *incidence)
Finds the attachment in the user's calendar, by attachmentName and incidence.
Namespace KCal is for global classes, objects and/or functions in libkcal.
Definition: alarm.h:38