CSenCredential Class Reference

API published in: S60 3rd Ed

Link against: senservdesc.lib

Capability Information

Required Capabilities

NetworkServices ReadUserData WriteUserData


#include <sencredential.h>

Inherits CSenBaseFragment.


Detailed Description

Class implements (web) service credential functionality.

Public Member Functions

virtual IMPORT_C  ~CSenCredential ()
  Destructor.
IMPORT_C const TDesC8 &  Id ()
  Getter for the credential ID.
IMPORT_C TTime &  ValidUntil ()
  Getter for the credential expiration time.
IMPORT_C void  SetValidUntil (TTime &aTime)
  Setter for the credential expiration time.

Static Public Member Functions

static IMPORT_C CSenCredential NewL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName, const RAttributeArray &aAttributes)
  Two-phase constructor.
static IMPORT_C CSenCredential NewLC (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName, const RAttributeArray &aAttributes)
  Two-phase constructor.
static IMPORT_C CSenCredential NewL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName, const RAttributeArray &aAttributes, CSenElement &aParent)
  Constructor with a possibility to set a parent.
static IMPORT_C CSenCredential NewLC (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName, const RAttributeArray &aAttributes, CSenElement &aParent)
  Constructor with a possibility to set a parent.
static IMPORT_C CSenCredential NewL (const CSenCredential &aCredential)
  Constructor which copies itself from another credential.
static IMPORT_C CSenCredential NewLC (const CSenCredential &aCredential)
  Constructor which copies itself from another credential.

Protected Member Functions

virtual IMPORT_C void  StartElementL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName, const RAttributeArray &aAttributes)
  From CSenDomFragment Callback function which implement the XML content handler interface.

Constructor & Destructor Documentation

virtual IMPORT_C CSenCredential::~CSenCredential  )  [virtual]
 

Destructor.


Member Function Documentation

IMPORT_C const TDesC8& CSenCredential::Id  ) 
 

Getter for the credential ID.

Returns:
the ID
static IMPORT_C CSenCredential* CSenCredential::NewL const CSenCredential aCredential  )  [static]
 

Constructor which copies itself from another credential.

Parameters:
aCredential  credential to copy from.
Returns:
new CSenCredential instance pointer
static IMPORT_C CSenCredential* CSenCredential::NewL const TDesC8 &  aNsUri,
const TDesC8 &  aLocalName,
const TDesC8 &  aQName,
const RAttributeArray &  aAttributes,
CSenElement aParent
[static]
 

Constructor with a possibility to set a parent.

Parameters:
aNsUri  The namespace URI of the new element
aLocalName  The local name of the new element
aQName  The qualified name of the new element
aAttributes  The attributes of the new element
aParent  The parent element of the new element
Returns:
new CSenCredential instance pointer Leave codes: KErrSenInvalidCharacters if aLocalName or aQName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName or aQName is zero length.

Reimplemented from CSenBaseFragment.

static IMPORT_C CSenCredential* CSenCredential::NewL const TDesC8 &  aNsUri,
const TDesC8 &  aLocalName,
const TDesC8 &  aQName,
const RAttributeArray &  aAttributes
[static]
 

Two-phase constructor.

Parameters:
aNsUri  The namespace URI of the new element
aLocalName  The local name of the new element
aQName  The qualified name of the new element
aAttributes  The attributes of the new element
Returns:
new CSenCredential instance pointer Leave codes: KErrSenInvalidCharacters if aLocalName or aQName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName or aQName is zero length.

Reimplemented from CSenBaseFragment.

static IMPORT_C CSenCredential* CSenCredential::NewLC const CSenCredential aCredential  )  [static]
 

Constructor which copies itself from another credential.

Parameters:
aCredential  credential to copy from.
Returns:
new CSenCredential instance pointer, which is left on cleanup stack.
static IMPORT_C CSenCredential* CSenCredential::NewLC const TDesC8 &  aNsUri,
const TDesC8 &  aLocalName,
const TDesC8 &  aQName,
const RAttributeArray &  aAttributes,
CSenElement aParent
[static]
 

Constructor with a possibility to set a parent.

Parameters:
aNsUri  The namespace URI of the new element
aLocalName  The local name of the new element
aQName  The qualified name of the new element
aAttributes  The attributes of the new element
aParent  The parent element of the new element
Returns:
new CSenCredential instance pointer, which is left on cleanup stack. Leave codes: KErrSenInvalidCharacters if aLocalName or aQName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName or aQName is zero length.
static IMPORT_C CSenCredential* CSenCredential::NewLC const TDesC8 &  aNsUri,
const TDesC8 &  aLocalName,
const TDesC8 &  aQName,
const RAttributeArray &  aAttributes
[static]
 

Two-phase constructor.

Parameters:
aNsUri  The namespace URI of the new element
aLocalName  The local name of the new element
aQName  The qualified name of the new element
aAttributes  The attributes of the new element
Returns:
new CSenCredential instance pointer, which is left on cleanup stack. Leave codes: KErrSenInvalidCharacters if aLocalName or aQName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName or aQName is zero length.
IMPORT_C void CSenCredential::SetValidUntil TTime &  aTime  ) 
 

Setter for the credential expiration time.

Parameters:
aTime  The new expiration time
virtual IMPORT_C void CSenCredential::StartElementL const TDesC8 &  aNsUri,
const TDesC8 &  aLocalName,
const TDesC8 &  aQName,
const RAttributeArray &  aAttributes
[protected, virtual]
 

From CSenDomFragment Callback function which implement the XML content handler interface.

Parameters:
aNsUri  The namespace URI of the new element
aLocalName  The local name of the new element
aQName  The qualified name of the new element
aAttributes  The attributes of the new element

Reimplemented from CSenBaseFragment.

IMPORT_C TTime& CSenCredential::ValidUntil  ) 
 

Getter for the credential expiration time.

Returns:
the the expiration time

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top