KEmoticons 5.109.0
Public Member Functions | Public Attributes | List of all members
KEmoticonsTheme::Token

A token consists of a QString text which is either a regular text or a path to image depending on the type. More...

#include <kemoticonstheme.h>

Public Member Functions

 Token (TokenType t, const QString &m)
 Creates a Token of type t, and text m.
 
 Token (TokenType t, const QString &m, const QString &p, const QString &html)
 Creates a Token of type t, text m, image path p and html code html.
 

Public Attributes

QString picHTMLCode
 <img> html code
 
QString picPath
 path to the image
 
QString text
 text
 
TokenType type
 type
 

Detailed Description

A token consists of a QString text which is either a regular text or a path to image depending on the type.

If type is Image the text refers to an image path. If type is Text the text refers to a regular text.

Constructor & Destructor Documentation

◆ Token() [1/2]

KEmoticonsTheme::Token::Token ( TokenType  t,
const QString &  m 
)
inline

Creates a Token of type t, and text m.

◆ Token() [2/2]

KEmoticonsTheme::Token::Token ( TokenType  t,
const QString &  m,
const QString &  p,
const QString &  html 
)
inline

Creates a Token of type t, text m, image path p and html code html.

Member Data Documentation

◆ picHTMLCode

QString KEmoticonsTheme::Token::picHTMLCode

<img> html code

◆ picPath

QString KEmoticonsTheme::Token::picPath

path to the image

◆ text

QString KEmoticonsTheme::Token::text

text

◆ type

TokenType KEmoticonsTheme::Token::type

type