• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
connectionmanager.h
Go to the documentation of this file.
1 /*
2  connectionmanager.h - Provides the client side interface to the kde networkstatus daemon
3 
4  Copyright (c) 2004 by Will Stephenson <wstephenson@kde.org>
5 
6  Kopete (c) 2004-2007 by the Kopete developers <kopete-devel@kde.org>
7 
8  *************************************************************************
9  * *
10  * This library is free software; you can redistribute it and/or *
11  * modify it under the terms of the GNU Lesser General Public *
12  * License as published by the Free Software Foundation; either *
13  * version 2 of the License, or (at your option) any later version. *
14  * *
15  *************************************************************************
16 */
17 
18 #ifndef KDE_CONNECTION_MANAGER_H
19 #define KDE_CONNECTION_MANAGER_H
20 
21 #include <dcopobject.h>
22 
23 #include "kopete_export.h"
24 #include "networkstatuscommon.h"
25 
26 class ConnectionManagerPrivate;
27 
28 class KOPETE_EXPORT ConnectionManager : public QObject, virtual public DCOPObject
29 {
30  Q_OBJECT
31  K_DCOP
32  public:
33  static ConnectionManager* self();
34  enum State { Inactive, Online, Offline, Pending };
35  virtual ~ConnectionManager();
36  NetworkStatus::EnumStatus status( const QString & host );
37  // check if a hostname is available. Ask user if offline. Request host
38  NetworkStatus::EnumRequestResult requestConnection( QWidget* mainWidget, const QString & host, bool userInitiated );
39  // method to relinquish a connection
40  void relinquishConnection( const QString & host );
41  signals:
42  // signal that the network for a hostname is up/down
43  void statusChanged( const QString & host, NetworkStatus::EnumStatus status );
44  protected:
45  // sets up internal state
46  void initialise();
47  // reread the desktop status from the daemon and update internal state
48  void updateStatus();
49  // ask if the user would like to reconnect
50  bool askToConnect( QWidget * mainWidget );
51  k_dcop:
52  void slotStatusChanged( QString host, int status );
53  private:
54  ConnectionManager( QObject *parent, const char * name );
55  ConnectionManagerPrivate *d;
56 };
57 
58 #endif
59 
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
status
OnlineStatus::StatusType status
Definition: kopeteonlinestatus.cpp:103
QWidget
ConnectionManager
Definition: connectionmanager.h:28
networkstatuscommon.h
NetworkStatus::EnumRequestResult
EnumRequestResult
Definition: networkstatuscommon.h:10
ConnectionManager::State
State
Definition: connectionmanager.h:34
QObject
NetworkStatus::Online
Definition: networkstatuscommon.h:9
kopete_export.h
QString
Kopete::UI::Global::mainWidget
KOPETE_EXPORT QWidget * mainWidget()
Returns the main widget - this is the widget that message boxes and KNotify stuff should use as a par...
Definition: kopeteuiglobal.cpp:37
NetworkStatus::Offline
Definition: networkstatuscommon.h:9
NetworkStatus::EnumStatus
EnumStatus
Definition: networkstatuscommon.h:9
DCOPObject
name
const char * name
Definition: kopeteonlinestatus.cpp:104
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal