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

kget

authenticationmonitor.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Joris Guisson                                   *
00003  *   joris.guisson@gmail.com                                               *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
00019  ***************************************************************************/
00020 #ifndef BTAUTHENTICATIONMONITOR_H
00021 #define BTAUTHENTICATIONMONITOR_H
00022 
00023 #include <list>
00024 #include <vector>
00025 #include <btcore_export.h>
00026 #ifdef Q_WS_WIN
00027 #include <util/mingw.h>
00028 #endif
00029 
00030 struct pollfd;
00031 
00032 namespace bt
00033 {
00034     class AuthenticateBase;
00035 
00041     class BTCORE_EXPORT AuthenticationMonitor
00042     {
00043         std::list<AuthenticateBase*> auths;
00044         std::vector<struct pollfd> fd_vec;
00045         
00046         static AuthenticationMonitor self;
00047         
00048         AuthenticationMonitor();
00049     public:
00050         
00051         virtual ~AuthenticationMonitor();
00052         
00053         
00058         void add(AuthenticateBase* s);
00059         
00064         void remove(AuthenticateBase* s);
00065         
00069         void update();
00070         
00074         void clear();
00075         
00076         static AuthenticationMonitor & instance() {return self;}
00077     private:
00078         void handleData();
00079     };
00080 
00081 }
00082 
00083 #endif

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal