• 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
  • scamdetection
scamdetection.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef SCAMDETECTION_H
19 #define SCAMDETECTION_H
20 
21 #include "messageviewer/messageviewer_export.h"
22 #include <QObject>
23 #include <QPointer>
24 
25 class QWebElement;
26 class QWebFrame;
27 
28 namespace MessageViewer {
29 class ScamDetectionDetailsDialog;
30 class ScamCheckShortUrl;
31 class MESSAGEVIEWER_EXPORT ScamDetection : public QObject
32 {
33  Q_OBJECT
34 public:
35  explicit ScamDetection(QObject *parent = 0);
36  ~ScamDetection();
37 
38  void scanPage(QWebFrame *frame);
39 
40  ScamCheckShortUrl *scamCheckShortUrl() const;
41 
42  static bool scanFrame(const QWebElement &rootElement, QString &details);
43 
44 public Q_SLOTS:
45  void showDetails();
46 
47 Q_SIGNALS:
48  void messageMayBeAScam();
49 
50 private:
51  QString mDetails;
52  QPointer<MessageViewer::ScamDetectionDetailsDialog> mDetailsDialog;
53  ScamCheckShortUrl *mCheckShortUrl;
54 };
55 }
56 
57 #endif // SCAMDETECTION_H
MessageViewer::ScamDetection
Definition: scamdetection.h:31
QObject
MessageViewer::ScamCheckShortUrl
Definition: scamcheckshorturl.h:35
MESSAGEVIEWER_EXPORT
#define MESSAGEVIEWER_EXPORT
Definition: messageviewer_export.h:37
messageviewer_export.h
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