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

Nepomuk-Core

  • KTp
text-parser.h
Go to the documentation of this file.
1 /*
2  * Text Parser common class
3  * Copyright (C) 2004 Peter Simonsson <psn@linux.se>
4  * Copyright (C) 2006-2008 Eike Hein <hein@kde.org>
5  * Copyright (C) 2011 Przemek Czekaj <xcojack@gmail.com>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
22 #ifndef TEXT_PARSER_H
23 #define TEXT_PARSER_H
24 
25 #include <QObject>
26 #include <QPair>
27 #include <QStringList>
28 
29 #include <KTp/ktp-export.h>
30 
31 namespace KTp
32 {
33 
40 struct KTP_EXPORT TextUrlData
41 {
42  QList<QPair<int, int> > urlRanges;
43  QStringList fixedUrls;
44 };
45 
50 class KTP_EXPORT TextParser : public QObject
51 {
52 
53 public:
60  static TextParser *instance();
61 
70  TextUrlData extractUrlData(const QString& string, bool doUrlFixup = true);
71 
77  virtual ~TextParser();
78 
79 private:
85  TextParser(QObject *parent = 0);
86 
90  static TextParser *s_instance;
91 };
92 
93 }
94 
95 #endif // TEXT_PARSER_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Mar 22 2013 10:58:52 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktp-common-internals API Reference

Skip menu "ktp-common-internals API Reference"
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