~ubuntu-branches/debian/sid/knetworkmanager/sid

« back to all changes in this revision

Viewing changes to knetworkmanager/src/knetworkmanager-state_dbus.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2006-09-28 11:47:00 UTC
  • Revision ID: james.westby@ubuntu.com-20060928114700-fbiktmk2woj1jww4
Tags: upstream-0.1
ImportĀ upstreamĀ versionĀ 0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *                                                                         *
 
3
 *   knetworkmanager-state_dbus.h - A NetworkManager frontend for KDE      *
 
4
 *   Copyright (C) 2005, 2006 Novell, Inc.                                 *
 
5
 *                                                                         *
 
6
 *   Author: Timo Hoenig <thoenig@suse.de>, <thoenig@nouse.net>            *
 
7
 *                                                                         *
 
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.                                   *
 
12
 *                                                                         *
 
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.                          *
 
17
 *                                                                         *
 
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.             *
 
22
 *                                                                         *
 
23
 ***************************************************************************/
 
24
 
 
25
#ifndef KNETWORKMANAGER_STATE_DBUS_H
 
26
#define KNETWORKMANAGER_STATE_DBUS_H
 
27
 
 
28
#include "knetworkmanager.h"
 
29
#include "knetworkmanager-state.h"
 
30
 
 
31
class StateDBus
 
32
{
 
33
        public:
 
34
          static void switchWireless           (bool);
 
35
          static void switchMode               (const char*);
 
36
          
 
37
          static bool isNetworkManagerRunning  (void);
 
38
 
 
39
          static void setState                 (NMState);
 
40
          static void getStateCallback         (DBusPendingCall*, void*);
 
41
          static void getState                 (void);
 
42
         
 
43
          static void setWirelessState         (bool);
 
44
          static void getWirelessStateCallback (DBusPendingCall*, void*);
 
45
          static void getWirelessState         (void);
 
46
          
 
47
          static void push                    (KNetworkManager*);
 
48
 
 
49
        private:
 
50
          static KNetworkManager* _ctx;
 
51
};
 
52
 
 
53
#endif /* KNETWORKMANAGER_STATE_DBUS_H */