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

mailcommon

  • sources
  • kde-4.12
  • kdepim
  • mailcommon
  • filter
mdnadvicedialog.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2009 Michael Leupold <lemma@confuego.org>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef MAILCOMMON_MDNADVICEDIALOG_H
20 #define MAILCOMMON_MDNADVICEDIALOG_H
21 
22 #include "mailcommon_export.h"
23 
24 #include <messagecomposer/helper/messagefactory.h>
25 
26 #include <KMime/KMimeMessage>
27 
28 #include <KDialog>
29 
30 namespace MailCommon {
31 
32 class MAILCOMMON_EXPORT MDNAdviceHelper : public QObject
33 {
34  Q_OBJECT
35 public:
36  static MDNAdviceHelper *instance()
37  {
38  if ( !s_instance ) {
39  s_instance = new MDNAdviceHelper;
40  }
41 
42  return s_instance;
43  }
44 
55  QPair<bool, KMime::MDN::SendingMode>checkAndSetMDNInfo(
56  const Akonadi::Item &item, KMime::MDN::DispositionType d, bool forceSend=false );
57 
58  MessageCore::MDNStateAttribute::MDNSentState dispositionToSentState(
59  KMime::MDN::DispositionType d );
60 
61 private:
62  explicit MDNAdviceHelper( QObject *parent = 0 )
63  {
64  Q_UNUSED( parent );
65  }
66 
67  virtual ~MDNAdviceHelper()
68  {
69  }
70 
71  int requestAdviceOnMDN( const char *what );
72  MessageComposer::MDNAdvice questionIgnoreSend( const QString &text, bool canDeny );
73 
74  static MDNAdviceHelper *s_instance;
75 };
76 
77 class MDNAdviceDialog : public KDialog
78 {
79  Q_OBJECT
80 
81 public:
82  MDNAdviceDialog( const QString &text, bool canDeny, QWidget *parent = 0 );
83  ~MDNAdviceDialog();
84 
85  MessageComposer::MDNAdvice result() const;
86 
87 private:
88  MessageComposer::MDNAdvice m_result;
89 
90 protected:
91 
92  // Reimplemented
93  void slotButtonClicked( int button );
94 };
95 
96 }
97 
98 #endif
MailCommon::MDNAdviceDialog::result
MessageComposer::MDNAdvice result() const
Definition: mdnadvicedialog.cpp:118
MailCommon::MDNAdviceDialog
Definition: mdnadvicedialog.h:77
MailCommon::MDNAdviceDialog::slotButtonClicked
void slotButtonClicked(int button)
Definition: mdnadvicedialog.cpp:278
MailCommon::MDNAdviceDialog::~MDNAdviceDialog
~MDNAdviceDialog()
Definition: mdnadvicedialog.cpp:114
text
const char * text
Definition: mdnadvicedialog.cpp:52
QWidget
KDialog
QObject
canDeny
bool canDeny
Definition: mdnadvicedialog.cpp:51
mailcommon_export.h
MailCommon::MDNAdviceHelper
Definition: mdnadvicedialog.h:32
MAILCOMMON_EXPORT
#define MAILCOMMON_EXPORT
Definition: mailcommon_export.h:35
MailCommon::MDNAdviceDialog::MDNAdviceDialog
MDNAdviceDialog(const QString &text, bool canDeny, QWidget *parent=0)
Definition: mdnadvicedialog.cpp:91
MailCommon::MDNAdviceHelper::instance
static MDNAdviceHelper * instance()
Definition: mdnadvicedialog.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

Skip menu "mailcommon"
  • 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