add more spacing
[personal-kdebase.git] / workspace / solid / networking / tests / networkingservice.h
blobd18d42f05d17b75ff6f8c660f79f61d6b79dcef6
1 /* This file is part of kdepim.
3 Copyright (C) 2005,2007 Will Stephenson <wstephenson@kde.org>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution.
24 #ifndef _TEST_NETWORKSTATUS_SERVICE_H
25 #define _TEST_NETWORKSTATUS_SERVICE_H
27 #include <KMainWindow>
28 #include <solid/networking.h>
29 #include "ui_networkingserviceview.h"
31 class OrgKdeSolidNetworkingServiceInterface;
33 class TestService : public KMainWindow {
34 Q_OBJECT
35 public:
36 TestService();
37 virtual ~TestService();
38 int status( const QString & network );
39 protected slots:
40 void changeComboActivated( int index );
41 void serviceOwnerChanged( const QString& service,const QString& oldOwner, const QString& newOwner );
43 void changeButtonClicked();
45 void slotStatusChange();
46 private:
47 void registerService();
48 static QColor toQColor( Solid::Networking::Status );
49 OrgKdeSolidNetworkingServiceInterface * m_service;
50 Solid::Networking::Status m_status;
51 Solid::Networking::Status m_nextStatus;
52 Ui_TestServiceView ui;
53 QWidget * m_view;
56 #endif