add more spacing
[personal-kdebase.git] / apps / konqueror / settings / kio / useragentinfo.h
blobb410ad3ee912353976be577a1f4771261e29bb05
1 /*
2 * Copyright (c) 2001 Dawit Alemayehu <adawit@kde.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef USERAGENTINFO_H
20 #define USERAGENTINFO_H
22 #include <kservice.h>
24 class QString;
25 class QStringList;
27 class UserAgentInfo
29 public:
30 enum StatusCode {
31 SUCCEEDED=0,
32 ALREADY_EXISTS,
33 DUPLICATE_ENTRY
36 UserAgentInfo();
37 ~UserAgentInfo(){}
39 StatusCode createNewUAProvider( const QString& );
40 QString aliasStr( const QString& );
41 QString agentStr( const QString& );
42 QStringList userAgentStringList();
43 QStringList userAgentAliasList();
44 bool isListDirty() const { return m_bIsDirty; }
45 void setListDirty( bool dirty ) { m_bIsDirty = dirty; }
47 protected:
48 void loadFromDesktopFiles();
49 void parseDescription();
51 private:
52 KService::List m_providers;
53 QStringList m_lstIdentity;
54 QStringList m_lstAlias;
55 bool m_bIsDirty;
58 #endif // USERAGENTINFO_H