kmail

scalix.h
1 /*
2  * This file is part of KMail.
3  *
4  * Copyright (C) 2007 Trolltech ASA. All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20 
40 #ifndef SCALIX_H
41 #define SCALIX_H
42 
43 #include <tqstring.h>
44 
45 #include "kmfoldertype.h"
46 
47 class KMFolder;
48 class KMFolderDir;
49 
50 namespace Scalix {
51 
57 {
58  public:
59  FolderAttributeParser( const TQString &attribute );
60 
61  TQString folderClass() const;
62  TQString folderName() const;
63 
64  private:
65  TQString mFolderClass;
66  TQString mFolderName;
67 };
68 
69 class Utils
70 {
71  public:
72  static KMFolder* findStandardResourceFolder( KMFolderDir* folderParentDir,
73  KMail::FolderContentsType contentsType,
74  const TQStringList &attributes );
75 
76  static KMail::FolderContentsType scalixIdToContentsType( const TQString &name );
77 
78  static TQString contentsTypeToScalixId( KMail::FolderContentsType type );
79 };
80 
81 }
82 
83 #endif
KMail list that manages the contents of one directory that may contain folders and/or other directori...
Definition: kmfolderdir.h:16
Mail folder.
Definition: kmfolder.h:69
This class takes a folder attribute string as argument and provides access to the single parts.
Definition: scalix.h:57