Changeset View
Changeset View
Standalone View
Standalone View
src/lib/text/ktexttohtml_p.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | class KTextToHTMLHelper | 42 | class KTextToHTMLHelper | ||
43 | { | 43 | { | ||
44 | public: | 44 | public: | ||
45 | KTextToHTMLHelper(const QString &plainText, int pos = 0, int maxUrlLen = 4096, int maxAddressLen = 255); | 45 | KTextToHTMLHelper(const QString &plainText, int pos = 0, int maxUrlLen = 4096, int maxAddressLen = 255); | ||
46 | 46 | | |||
47 | KTextToHTMLEmoticonsInterface *emoticonsInterface() const; | 47 | KTextToHTMLEmoticonsInterface *emoticonsInterface() const; | ||
48 | 48 | | |||
49 | QString getEmailAddress(); | 49 | QString getEmailAddress(); | ||
50 | QString getPhoneNumber(); | ||||
50 | bool atUrl() const; | 51 | bool atUrl() const; | ||
51 | bool isEmptyUrl(const QString &url) const; | 52 | bool isEmptyUrl(const QString &url) const; | ||
52 | QString getUrl(bool *badurl = nullptr); | 53 | QString getUrl(bool *badurl = nullptr); | ||
53 | QString pngToDataUrl(const QString &pngPath) const; | 54 | QString pngToDataUrl(const QString &pngPath) const; | ||
54 | QString highlightedText(); | 55 | QString highlightedText(); | ||
55 | 56 | | |||
56 | QString mText; | 57 | QString mText; | ||
57 | int mMaxUrlLen; | 58 | int mMaxUrlLen; | ||
58 | int mMaxAddressLen; | 59 | int mMaxAddressLen; | ||
59 | int mPos; | 60 | int mPos; | ||
60 | }; | 61 | }; | ||
61 | 62 | | |||
62 | #endif | 63 | #endif |