KIMAP Library
20 #ifndef KIMAP_MESSAGE_P_H
21 #define KIMAP_MESSAGE_P_H
23 #include <QtCore/QByteArray>
24 #include <QtCore/QList>
25 #include <QtCore/QMetaType>
34 enum Type { String = 0, List };
37 : m_type( String ), m_string( string ) { }
39 : m_type( List ), m_list( list ) { }
41 inline Type type()
const {
return m_type; }
55 foreach (
const Part &part, content ) {
56 if ( part.type() == Part::List ) {
58 foreach (
const QByteArray &item, part.toList() ) {
64 result += part.toString() +
' ';
68 if ( !responseCode.isEmpty() ) {
70 foreach (
const Part &part, responseCode ) {
71 if ( part.type() == Part::List ) {
73 foreach (
const QByteArray &item, part.toList() ) {
79 result+= part.toString() +
' ';
94 Q_DECLARE_METATYPE( KIMAP::Message )
95 static const
int _kimap_messageTypeId = qRegisterMetaType<KIMAP::Message>();
char * toString(const T &value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:03 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.