• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

messageviewer

  • sources
  • kde-4.12
  • kdepim
  • messageviewer
  • widgets
attachmentdialog.h
Go to the documentation of this file.
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2  This file is part of KMail, the KDE mail client.
3  Copyright (c) 2009 Martin Koller <kollix@aon.at>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef MESSAGEVIEWERT_ATTACHMENTDIALOG_H
21 #define MESSAGEVIEWERT_ATTACHMENTDIALOG_H
22 
23 #include <QObject>
24 
25 class KDialog;
26 
27 namespace MessageViewer {
28 
33 class AttachmentDialog : public QObject
34 {
35  Q_OBJECT
36 
37 public:
39  enum
40  {
41  Save = 2,
42  Open,
43  OpenWith,
44  Cancel
45  };
46 
47  // if @application is non-empty, the "open with <application>" button will also be shown,
48  // otherwise only save, open with, cancel
49  explicit AttachmentDialog( QWidget *parent, const QString &filenameText, const QString &application,
50  const QString &dontAskAgainName );
51 
52  // executes the modal dialog
53  int exec();
54 
55 private slots:
56  void saveClicked();
57  void openClicked();
58  void openWithClicked();
59 
60 private:
61  QString text, dontAskName;
62  KDialog *dialog;
63 };
64 
65 }
66 
67 #endif
MessageViewer::AttachmentDialog::Open
Definition: attachmentdialog.h:42
QWidget
KDialog
QObject
MessageViewer::AttachmentDialog::Cancel
Definition: attachmentdialog.h:44
MessageViewer::AttachmentDialog::Save
Definition: attachmentdialog.h:41
MessageViewer::AttachmentDialog::AttachmentDialog
AttachmentDialog(QWidget *parent, const QString &filenameText, const QString &application, const QString &dontAskAgainName)
Definition: attachmentdialog.cpp:32
MessageViewer::AttachmentDialog::OpenWith
Definition: attachmentdialog.h:43
MessageViewer::AttachmentDialog
A class which handles the dialog used to present the user a choice what to do with an attachment...
Definition: attachmentdialog.h:33
MessageViewer::AttachmentDialog::exec
int exec()
Definition: attachmentdialog.cpp:63
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messageviewer

Skip menu "messageviewer"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal