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

tdeio/tdeio

  • tdeio
  • tdeio
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 __tdeio_pass_dlg_h__
21#define __tdeio_pass_dlg_h__
22
23#include <kdialogbase.h>
24
25class TQGridLayout;
26
27namespace TDEIO {
28
36class TDEIO_EXPORT PasswordDialog : public KDialogBase
37{
38 TQ_OBJECT
39
40public:
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 TDE_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
159private slots:
160 void slotKeep( bool );
161 void slotActivated( const TQString& userName );
162
163private:
164 void init( const TQString&, const TQString&, bool );
165
166protected:
167 virtual void virtual_hook( int id, void* data );
168private:
169 struct PasswordDialogPrivate;
170 PasswordDialogPrivate* d;
171};
172
173}
174
175#endif
TDEIO::PasswordDialog
A dialog for requesting a login and a password from the end user.
Definition: passdlg.h:37
TDEIO::PasswordDialog::setEnableUserField
TDE_DEPRECATED void setEnableUserField(bool enable, bool=false)
Definition: passdlg.h:116
TDEIO
A namespace for TDEIO globals.
Definition: authinfo.h:29

tdeio/tdeio

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

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.9.4
This website is maintained by Timothy Pearson.