1
/***************************************************************************
3
* knetworkmanager-state_dbus.h - A NetworkManager frontend for KDE *
4
* Copyright (C) 2005, 2006 Novell, Inc. *
6
* Author: Timo Hoenig <thoenig@suse.de>, <thoenig@nouse.net> *
8
* This program is free software; you can redistribute it and/or modify *
9
* it under the terms of the GNU General Public License as published by *
10
* the Free Software Foundation; either version 2 of the License, or *
11
* (at your option) any later version. *
13
* This program is distributed in the hope that it will be useful, *
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16
* GNU General Public License for more details. *
18
* You should have received a copy of the GNU General Public License *
19
* along with this program; if not, write to the *
20
* Free Software Foundation, Inc., *
21
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
23
***************************************************************************/
25
#ifndef KNETWORKMANAGER_STATE_DBUS_H
26
#define KNETWORKMANAGER_STATE_DBUS_H
28
#include "knetworkmanager.h"
29
#include "knetworkmanager-state.h"
34
static void switchWireless (bool);
35
static void switchMode (const char*);
37
static bool isNetworkManagerRunning (void);
39
static void setState (NMState);
40
static void getStateCallback (DBusPendingCall*, void*);
41
static void getState (void);
43
static void setWirelessState (bool);
44
static void getWirelessStateCallback (DBusPendingCall*, void*);
45
static void getWirelessState (void);
47
static void push (KNetworkManager*);
50
static KNetworkManager* _ctx;
53
#endif /* KNETWORKMANAGER_STATE_DBUS_H */