• 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
kopetepasswordedaccount.h
Go to the documentation of this file.
1 /*
2  kopetepasswordedaccount.h - Kopete Account with a password
3 
4  Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
5  Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
6 
7  *************************************************************************
8  * *
9  * This library is free software; you can redistribute it and/or *
10  * modify it under the terms of the GNU Lesser General Public *
11  * License as published by the Free Software Foundation; either *
12  * version 2 of the License, or (at your option) any later version. *
13  * *
14  *************************************************************************
15 */
16 
17 #ifndef KOPETEPASSWORDEDACCOUNT_H
18 #define KOPETEPASSWORDEDACCOUNT_H
19 
20 #include "kopeteaccount.h"
21 
22 #include "kopete_export.h"
23 
24 
25 namespace Kopete
26 {
27 
28 class Password;
29 
36 class KOPETE_EXPORT PasswordedAccount : public Account
37 {
38  Q_OBJECT
39 
40 public:
41 
51  PasswordedAccount( Protocol *parent, const QString &acctId, bool allowBlankPassword = false );
52 
53  virtual ~PasswordedAccount();
54 
58  Password &password();
59 
60  void connect();
61 
68  void connect( const OnlineStatus& initialStatus );
69 
73  OnlineStatus initialStatus();
74 
83  virtual bool removeAccount();
84 
85 
86 public slots:
92  virtual void connectWithPassword( const QString &password ) = 0;
93 
94 protected:
100  virtual QString passwordPrompt();
101 
102 protected slots:
107  virtual void disconnected( Kopete::Account::DisconnectReason reason );
108 
109 
110 private:
111  struct Private;
112  Private * const d;
113 };
114 
115 }
116 
117 #endif
118 
119 // vim: set noet ts=4 sts=4 sw=4:
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::OnlineStatus
Definition: kopeteonlinestatus.h:68
kopeteaccount.h
Kopete::Protocol
base class of every protocol.
Definition: kopeteprotocol.h:62
kopete_export.h
QString
Kopete::PasswordedAccount
An account requiring a password to connect.
Definition: kopetepasswordedaccount.h:36
Kopete::Password
Definition: kopetepassword.h:48
Kopete::Account::DisconnectReason
DisconnectReason
Describes how the account was disconnected.
Definition: kopeteaccount.h:95
Kopete::Account
The Kopete::Account class handles one account.
Definition: kopeteaccount.h:72
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