Signature Class Reference
abstraction of a signature (aka "footer"). More...
#include <kmidentity.h>
Public Types | |
enum | Type { Disabled = 0, Inlined = 1, FromFile = 2, FromCommand = 3 } |
Public Methods | |
bool | operator== (const Signature &other) const |
Signature () | |
Signature (const QString &text) | |
Signature (const QString &url, bool isExecutable) | |
QString | rawText (bool *ok=0) const |
QString | withSeparator (bool *ok=0) const |
void | setText (const QString &text) |
void | setUrl (const QString &url, bool isExecutable=false) |
Protected Methods | |
void | writeConfig (KConfigBase *config) const |
void | readConfig (const KConfigBase *config) |
Type | type () const |
QString | url () const |
QString | text () const |
Protected Attributes | |
QString | mUrl |
QString | mText |
Type | mType |
Friends | |
class | KMIdentity |
class | KMail::SignatureConfigurator |
QDataStream & | operator<< (QDataStream &stream, const Signature &sig) |
QDataStream & | operator>> (QDataStream &stream, Signature &sig) |
Detailed Description
abstraction of a signature (aka "footer").
- Author:
- Marc Mutz <mutz@kde.org>
Definition at line 26 of file kmidentity.h.
Member Enumeration Documentation
|
Type of signature (ie. way to obtain the signature text) Definition at line 35 of file kmidentity.h. |
Constructor & Destructor Documentation
|
Constructor for disabled signature.
Definition at line 26 of file kmidentity.cpp. |
|
Constructor for inline text.
Definition at line 32 of file kmidentity.cpp. |
|
Constructor for text from a file or from output of a command.
Definition at line 39 of file kmidentity.cpp. |
Member Function Documentation
|
Used for comparison.
Definition at line 45 of file kmidentity.cpp. |
|
Definition at line 56 of file kmidentity.cpp. Referenced by withSeparator(). |
|
Definition at line 134 of file kmidentity.cpp. References QString::find(), QString::fromLatin1(), QString::isEmpty(), rawText(), and QString::startsWith(). Referenced by KMIdentity::signatureText(). |
|
Set the signature text and mark this signature as being of "inline text" type.
Definition at line 56 of file kmidentity.h. |
|
Set the signature URL and mark this signature as being of "from file" resp. "from output of command" type. Definition at line 157 of file kmidentity.cpp. |
The documentation for this class was generated from the following files: