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

kmail/src

  • kde-4.x
  • pim
  • kmail
  • src
  • job
handleclickedurljob.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2017-2019 Laurent Montel <[email protected]>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library 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 GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef HANDLECLICKEDURLJOB_H
21 #define HANDLECLICKEDURLJOB_H
22 
23 #include <QObject>
24 #include <QSharedPointer>
25 #include <MailCommon/FolderSettings>
26 
27 class HandleClickedUrlJob : public QObject
28 {
29  Q_OBJECT
30 public:
31  explicit HandleClickedUrlJob(QObject *parent = nullptr);
32  ~HandleClickedUrlJob();
33 
34  void start();
35 
36  void setUrl(const QUrl &url);
37  void setFolder(const QSharedPointer<MailCommon::FolderSettings> &folder);
38  void setCurrentCollection(const Akonadi::Collection &currentCollection);
39 private:
40  Q_DISABLE_COPY(HandleClickedUrlJob)
41  void slotOpenComposer();
42  QUrl mUrl;
43  Akonadi::Collection mCurrentCollection;
44  QSharedPointer<MailCommon::FolderSettings> mFolder;
45  uint mIdentity = 0;
46  KMime::Message::Ptr mMsg = nullptr;
47 };
48 
49 #endif // HANDLECLICKEDURLJOB_H
HandleClickedUrlJob::HandleClickedUrlJob
HandleClickedUrlJob(QObject *parent=nullptr)
Definition: handleclickedurljob.cpp:30
HandleClickedUrlJob::setUrl
void setUrl(const QUrl &url)
Definition: handleclickedurljob.cpp:97
HandleClickedUrlJob::setFolder
void setFolder(const QSharedPointer< MailCommon::FolderSettings > &folder)
Definition: handleclickedurljob.cpp:102
HandleClickedUrlJob::setCurrentCollection
void setCurrentCollection(const Akonadi::Collection &currentCollection)
Definition: handleclickedurljob.cpp:107
QSharedPointer< MailCommon::FolderSettings >
QObject
HandleClickedUrlJob
Definition: handleclickedurljob.h:27
HandleClickedUrlJob::start
void start()
Definition: handleclickedurljob.cpp:41
HandleClickedUrlJob::~HandleClickedUrlJob
~HandleClickedUrlJob()
Definition: handleclickedurljob.cpp:37
QUrl
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Dec 5 2019 03:57:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail/src

Skip menu "kmail/src"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

pim API Reference

Skip menu "pim API Reference"
  • akonadi-calendar-tools
  •   konsolekalendar
  • akregator
  •   src
  • kalarmcal
  •   src
  •     lib
  • kdepim-runtime
  •   agents
  •   src
  • kleopatra
  •   src
  • kmailtransport
  • knotes
  • kontact
  • kontactinterface
  • kpimtextedit
  • ksmtp
  • ktnef
  • libkgapi
  • libkleo
  •   src
  •     src
  •     src

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