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

messageviewer

  • sources
  • kde-4.14
  • kdepim
  • messageviewer
  • scamdetection
scamcheckshorturl.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-2015 Montel Laurent <montel@kde.org>
3  based on ktp code
4 
5  This program is free software; you can redistribute it and/or modify it
6  under the terms of the GNU General Public License, version 2, as
7  published by the Free Software Foundation.
8 
9  This program is distributed in the hope that it will be useful, but
10  WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  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 SCAMCHECKSHORTURL_H
20 #define SCAMCHECKSHORTURL_H
21 
22 #include "messageviewer_export.h"
23 
24 #include <QObject>
25 
26 #include <KUrl>
27 
28 #include <QStringList>
29 #include <QNetworkReply>
30 #include <Solid/Networking>
31 
32 class QNetworkAccessManager;
33 class QNetworkReply;
34 namespace MessageViewer {
35 class MESSAGEVIEWER_EXPORT ScamCheckShortUrl : public QObject
36 {
37  Q_OBJECT
38 public:
39  explicit ScamCheckShortUrl(QObject *parent=0);
40  ~ScamCheckShortUrl();
41 
42  static bool isShortUrl(const KUrl &url);
43 
44  void expandedUrl(const KUrl &url);
45 
46  static void loadLongUrlServices();
47 
48 private Q_SLOTS:
49  void slotExpandFinished(QNetworkReply*);
50  void slotError(QNetworkReply::NetworkError error);
51  void slotSystemNetworkStatusChanged(Solid::Networking::Status status);
52 
53 Q_SIGNALS:
54  void urlExpanded(const QString &shortUrl, const QString &expandedUrl);
55  void expandUrlError(QNetworkReply::NetworkError error);
56 
57 private:
58  static QStringList sSupportedServices;
59  QNetworkAccessManager *mNetworkAccessManager;
60  bool mNetworkUp;
61 };
62 }
63 
64 #endif // SCAMCHECKSHORTURL_H
QNetworkReply
MessageViewer::ScamCheckShortUrl
Definition: scamcheckshorturl.h:35
QObject
QString
QStringList
MESSAGEVIEWER_EXPORT
#define MESSAGEVIEWER_EXPORT
Definition: messageviewer_export.h:37
QNetworkAccessManager
messageviewer_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 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
  • pimprint

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