• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kio
 

kio/kio

  • kio
  • kio
passdlg.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 David Faure <faure@kde.org>
3  Copyright (C) 2000 Dawit Alemayehu <adawit@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public
15  License along with this library; see the file COPYING.LIB. If
16  not, write to the Free Software Foundation, Inc., 51 Franklin Street,
17  Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef __kio_pass_dlg_h__
21 #define __kio_pass_dlg_h__
22 
23 #include <kdialogbase.h>
24 
25 class TQGridLayout;
26 
27 namespace KIO {
28 
36 class KIO_EXPORT PasswordDialog : public KDialogBase
37 {
38  Q_OBJECT
39 
40 public:
51  PasswordDialog( const TQString& prompt, const TQString& user,
52  bool enableKeep = false, bool modal=true,
53  TQWidget* parent=0, const char* name=0 );
54 
58  ~PasswordDialog();
59 
64  void setPrompt( const TQString& prompt );
65 
76  void addCommentLine( const TQString& label, const TQString comment );
77 
82  TQString password() const;
83 
88  TQString username() const;
89 
95  bool keepPassword() const;
96 
103  void setKeepPassword( bool b );
104 
111  void setUserReadOnly( bool readOnly );
112 
116  KDE_DEPRECATED void setEnableUserField( bool enable, bool=false ) {
117  setUserReadOnly( !enable );
118  };
119 
125  void setPassword( const TQString& password );
126 
134  void setKnownLogins( const TQMap<TQString, TQString>& knownLogins );
135 
152  static int getNameAndPassword( TQString& user, TQString& pass, bool* keep,
153  const TQString& prompt = TQString::null,
154  bool readOnly = false,
155  const TQString& caption = TQString::null,
156  const TQString& comment = TQString::null,
157  const TQString& label = TQString::null );
158 
159 private slots:
160  void slotKeep( bool );
161  void slotActivated( const TQString& userName );
162 
163 private:
164  void init( const TQString&, const TQString&, bool );
165 
166 protected:
167  virtual void virtual_hook( int id, void* data );
168 private:
169  struct PasswordDialogPrivate;
170  PasswordDialogPrivate* d;
171 };
172 
173 }
174 
175 #endif
KIO::PasswordDialog
A dialog for requesting a login and a password from the end user.
Definition: passdlg.h:37
KIO::PasswordDialog::setEnableUserField
KDE_DEPRECATED void setEnableUserField(bool enable, bool=false)
Definition: passdlg.h:116
KIO
A namespace for KIO globals.
Definition: authinfo.h:29

kio/kio

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

kio/kio

Skip menu "kio/kio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kio by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |