kmail
scalix.h
Go to the documentation of this file.00001 /* 00002 * This file is part of KMail. 00003 * 00004 * Copyright (C) 2007 Trolltech ASA. All rights reserved. 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 */ 00020 00040 #ifndef SCALIX_H 00041 #define SCALIX_H 00042 00043 #include <qstring.h> 00044 00045 #include "kmfoldertype.h" 00046 00047 class KMFolder; 00048 class KMFolderDir; 00049 00050 namespace Scalix { 00051 00056 class FolderAttributeParser 00057 { 00058 public: 00059 FolderAttributeParser( const QString &attribute ); 00060 00061 QString folderClass() const; 00062 QString folderName() const; 00063 00064 private: 00065 QString mFolderClass; 00066 QString mFolderName; 00067 }; 00068 00069 class Utils 00070 { 00071 public: 00072 static KMFolder* findStandardResourceFolder( KMFolderDir* folderParentDir, 00073 KMail::FolderContentsType contentsType, 00074 const QStringList &attributes ); 00075 00076 static KMail::FolderContentsType scalixIdToContentsType( const QString &name ); 00077 00078 static QString contentsTypeToScalixId( KMail::FolderContentsType type ); 00079 }; 00080 00081 } 00082 00083 #endif