--- /dev/null
+/***************************************************************************
+ * Copyright (C) 2005-09 by the Quassel Project *
+ * devel@quassel-irc.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) version 3. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
+#ifndef TOOLBARACTIONPROVIDER_H_
+#define TOOLBARACTIONPROVIDER_H_
+
+#include "networkmodelcontroller.h"
+
+class QToolBar;
+
+class ToolBarActionProvider : public NetworkModelController {
+ Q_OBJECT
+
+public:
+ ToolBarActionProvider(QObject *parent = 0);
+ virtual ~ToolBarActionProvider();
+
+ enum ToolBarType {
+ NetworkToolBar,
+ ChatViewToolBar,
+ NickToolBar
+ };
+
+ void addActions(QToolBar *, ToolBarType type);
+
+private slots:
+ void networkCreated(NetworkId id);
+ void networkRemoved(NetworkId id);
+ void networkUpdated(const Network *net = 0);
+ void connectOrDisconnectNet();
+
+ //void currentBufferChanged(BufferId id);
+
+
+private:
+ QMenu *_networksConnectMenu, *_networksDisconnectMenu;
+ QHash<NetworkId, Action *> _networkActions;
+};
+
+#endif