KIO::NetRC

#include <authinfo.h>

Classes

struct  AutoLogin
 

Public Types

typedef QFlags< LookUpModeFlagLookUpMode
 
enum  LookUpModeFlag { exactOnly = 0x0002, defaultOnly = 0x0004, presetOnly = 0x0008 }
 

Public Member Functions

bool lookup (const QUrl &url, AutoLogin &login, bool userealnetrc=false, const QString &type=QString(), LookUpMode mode=LookUpMode(exactOnly)|defaultOnly)
 
void reload ()
 

Static Public Member Functions

static NetRCself ()
 

Protected Member Functions

bool parse (const QString &fileName)
 

Detailed Description

A Singleton class that provides access to passwords stored in .netrc files for automatic login purposes.

This is only meant to address backward compatibility with old automated ftp client style logins...

An interface to the ftp .netrc files

Author
Dawit Alemayehu adawi[email protected][email protected][email protected]e.org

Definition at line 296 of file authinfo.h.

Member Typedef Documentation

Stores a combination of LookUpModeFlag values.

Definition at line 319 of file authinfo.h.

Member Enumeration Documentation

Specifies the mode to be used when searching for a matching automatic login info for a given site :

  • exactOnly search entries with exact host name matches.
  • defaultOnly search entries that are specified as "default".
  • presetOnly search entries that are specified as "preset".
See also
lookup
LookUpMode

Definition at line 311 of file authinfo.h.

Member Function Documentation

bool NetRC::lookup ( const QUrl url,
AutoLogin login,
bool  userealnetrc = false,
const QString type = QString(),
LookUpMode  mode = LookUpMode(exactOnly) | defaultOnly 
)

Looks up the login information for the given url.

Parameters
urlthe url whose login information will be checked
loginthe login information will be writte here
userealnetrcif true, use $HOME/.netrc file
typethe type of the login. If null, the url's protocol will be taken
modethe LookUpMode flags (ORed) for the query

Definition at line 283 of file authinfo.cpp.

void NetRC::reload ( )

Reloads the auto login information.

Definition at line 358 of file authinfo.cpp.

NetRC * NetRC::self ( )
static

A reference to the instance of the class.

Returns
the class

Definition at line 275 of file authinfo.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Oct 20 2020 23:06:31 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.