]> cloud.milkyroute.net Git - dolphin.git/blob - src/protocolcombo.h
56a0018633e7bdd1cdd0e594c6c356efd65fac07
[dolphin.git] / src / protocolcombo.h
1 /***************************************************************************
2 * Copyright (C) 2006 by Aaron J. Seigo (<aseigo@kde.org>) *
3 * *
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. *
8 * *
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. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
18 ***************************************************************************/
19 #ifndef PROTOCOLCOMBO_H
20 #define PROTOCOLCOMBO_H
21
22 #include "urlnavigatorbutton.h"
23
24 class UrlNavigator;
25
26 /**
27 * A combobox listing available protocols
28 */
29 class ProtocolCombo : public UrlNavigatorButton
30 {
31 Q_OBJECT
32
33 public:
34 explicit ProtocolCombo(const QString& protocol, UrlNavigator* parent = 0);
35
36 QString currentProtocol() const;
37
38 public slots:
39 void setProtocol(const QString& protocol);
40 void setProtocol(int index);
41
42 signals:
43 void activated(const QString& protocol);
44
45 private:
46 QStringList m_protocols;
47 };
48
49 #endif