• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KIO

  • KIO
  • NetRC
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KIO::NetRC Class Reference

#include <authinfo.h>

Classes

struct  AutoLogin
 

Public Types

enum  LookUpModeFlag { exactOnly = 0x0002, defaultOnly = 0x0004, presetOnly = 0x0008 }
 

Public Member Functions

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

Static Public Member Functions

static NetRC * self ()
 

Protected Member Functions

QString extract (const char *, const char *, int &)
 
int openf (const QString &)
 
bool parse (int)
 

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.nosp@m.t@kd.nosp@m.e.org

Definition at line 306 of file authinfo.h.

Member Enumeration Documentation

enum KIO::NetRC::LookUpModeFlag

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
Enumerator
exactOnly 
defaultOnly 
presetOnly 

Definition at line 320 of file authinfo.h.

Member Function Documentation

QString NetRC::extract ( const char *  buf,
const char *  key,
int &  pos 
)
protected

Definition at line 389 of file authinfo.cpp.

bool NetRC::lookup ( const KUrl &  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 fle
typethe type of the login. If null, the url's protocol will be taken
modethe LookUpMode flags (ORed) for the query

Definition at line 293 of file authinfo.cpp.

int NetRC::openf ( const QString &  f)
protected

Definition at line 375 of file authinfo.cpp.

bool NetRC::parse ( int  fd)
protected

Definition at line 424 of file authinfo.cpp.

void NetRC::reload ( )

Reloads the auto login information.

Definition at line 370 of file authinfo.cpp.

NetRC * NetRC::self ( )
static

A reference to the instance of the class.

Returns
the class

Definition at line 286 of file authinfo.cpp.


The documentation for this class was generated from the following files:
  • authinfo.h
  • authinfo.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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