23 #ifndef LINKLOCATOR_H_INCLUDED
24 #define LINKLOCATOR_H_INCLUDED
29 #include <kdemacros.h>
64 void setMaxUrlLen( int length);
71 int maxUrlLen() const;
83 void setMaxAddressLen( int length);
91 int maxAddressLen() const;
114 TQString getEmailAddress();
139 static TQString convertToHtml( const TQString& plainText, int flags = 0,
140 int maxUrlLen = 4096, int maxAddressLen = 255);
142 static const int PreserveSpaces = 0x01;
143 static const int ReplaceSmileys = 0x02;
144 static const int IgnoreUrls = 0x04;
145 static const int HighlightText = 0x08;
151 static TQString pngToDataUrl( const TQString & iconPath );
165 bool isEmptyUrl( const TQString& url);
173 TQString getEmoticon();
178 TQString highlightedText();
184 static TQMap<TQString, TQString> *s_smileyEmoticonNameMap;
186 static TQMap<TQString, TQString> *s_smileyEmoticonHTMLCache;
189 #endif // LINKLOCATOR_H_INCLUDED
|