class CRsfwRemoteAccess : public CBase |
Class for accessing files via a file transport protocol, like WebDAV.
Private Attributes | |
---|---|
TUid | iDtor_ID_Key |
void | Cancel | ( | TUint | aId | ) | [pure virtual] |
Cancels a transaction Eventually the HandleRemoteAccessResponseL will be called with status KErrCancel
TUint aId | the identifier of the transaction to be canceled. If aId is zero, all pending requests are cancelled. |
void | Cancel | ( | TDesC & | aTargetPath | ) | [pure virtual] |
Cancels a transaction Eventually the HandleRemoteAccessResponseL will be called with status KErrCancel
TDesC & aTargetPath | the path of the target file or directory for the operation that shall be cancelled |
TUint | CreateFileL | ( | const TDesC & | aPathName, |
TBool | aOverWriting, | |||
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Creates an empty file on the remote server
const TDesC & aPathName | path name of the new file |
TBool aOverWriting | whether we are overwriting an existing file Note that the semantics of this operation is such that it must always overwrite an existing file. This boolean is for information. If the protocol requires additional parameter to allow overwriting, the parameter should be set if aOverWriting is TRUE. |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | DeleteDirectoryL | ( | const TDesC & | aPathName, |
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Deletes a directory.
const TDesC & aPathName | path name of the directory to be deleted |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | DeleteFileL | ( | const TDesC & | aPathName, |
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Deletes a file.
const TDesC & aPathName | path name of the file to be deleted |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | GetDirectoryAttributesL | ( | const TDesC & | aPathName, |
CRsfwDirEntAttr *& | aAttr, | |||
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Gets attributes of the directory given by aPathName parameter. This function may also be called if the type of the object is not yet known (e.g., the object could be a file).
const TDesC & aPathName | path name of the directory |
CRsfwDirEntAttr *& aAttr | A pointer to the attribute object to be filled. This attribute is set to point to a newly created CRsfwDirEntAttr object that will contain the directory attributes. In the created attribute object, pointers to descriptors for meta-data items that are not available or that are irrelevant are set to NULL value. The ownership of the object is transferred to the caller. If the attributes cannot be defined, the pointer will be set to NULL. |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | GetDirectoryL | ( | const TDesC & | aPathName, |
RPointerArray < CRsfwDirEnt > & | aDirEntsp, | |||
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Gets contents of the directory given by aPathName parameter.
const TDesC & aPathName | path name of the directory |
RPointerArray < CRsfwDirEnt > & aDirEntsp | |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | GetFileAttributesL | ( | const TDesC & | aPathName, |
CRsfwDirEntAttr *& | aAttr, | |||
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Gets attributes of the file given by aPathName parameter.
const TDesC & aPathName | path name of the file |
CRsfwDirEntAttr *& aAttr | A pointer to the attribute object to be filled. This attribute is set to point to a newly created CRsfwDirEntAttr object that will contain the file attributes. In the created attribute object, pointers to descriptors for meta-data items that are not available or that are irrelevant are set to NULL value. The ownership of the object is transferred to the caller. If the attributes cannot be defined, the pointer will be set to NULL. |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | GetFileL | ( | const TDesC & | aRemotePathName, |
const TDesC & | aLocalPathName, | |||
TInt | aOffset, | |||
TInt * | aLength, | |||
TUint | aFlags, | |||
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Gets a remote file and copies it to a local file. Note that byte ranges are not be implemented by all file access protocols. A non-zero aLength means partial get. Caller can assume that either aLength remains intact in which case byte range offset + aLength was fetched, or aLength is reset to the full length of the file, in which case aOffset is meaningless.
const TDesC & aRemotePathName | path name of the remote file |
const TDesC & aLocalPathName | path name of the local file |
TInt aOffset | offset of the first byte to be accessed |
TInt * aLength | length of data to be accessed/was accessed (on entry NULL or zero value means fetching the whole file - on exit contains the length of fetched data, unless the pointer is NULL) |
TUint aFlags | operation qualifier. The following flags have been defined: KRemoteAccessOptionGetToStartOfFile: even if an offset is specified the fetched data is still put at the beginning of the local file. |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
IMPORT_C TInt | GetQuotaAndSizeL | ( | TInt & | aQuota, |
TInt & | aSize | |||
) | [virtual] |
Gets quota and size.
TUint | MakeDirectoryL | ( | const TDesC & | aPathName, |
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Makes a directory.
const TDesC & aPathName | path name of the new directory |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
IMPORT_C CRsfwRemoteAccess * | NewL | ( | const TDesC8 & | aProtocol | ) | [static] |
Two-phased constructor.
const TDesC8 & aProtocol | protocol name, like "http", "https", or "ftp" |
TUint | ObtainLockL | ( | const TDesC & | aPathName, |
TUint | aLockFlags, | |||
TUint & | aTimeout, | |||
TDesC8 *& | aLockToken, | |||
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Obtains a lock for the given file system object Note that this function is not be implemented by all file access protocols (e.g. FTP), some protocols only implement write locking (e.g. WebDAV).
const TDesC & aPathName | path name of the object to be locked |
TUint aLockFlags | indicates whether a write or read lock is requested |
TUint & aTimeout | the timeout that is requested and granted (in seconds) |
TDesC8 *& aLockToken | acquired lock token - the caller gets ownership |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | OpenL | ( | const TUriC & | aUri, |
const TDesC & | aFriendlyName, | |||
const TDesC & | aUserName, | |||
const TDesC & | aPassword, | |||
const TDesC & | aAuxData, | |||
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Opens a connection to the server given by aServerName parameter.
const TUriC & aUri | URI of the remote repository. The URI must not contain authority part (user name/password) |
const TDesC & aFriendlyName | friendly name for the server (for possible access control dialog) (can be empty) |
const TDesC & aUserName | user name for access control (can be empty) |
const TDesC & aPassword | password for access control (can be empty) |
const TDesC & aAuxData | auxiliary parameters for connection setup (eg IAP info) |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | PutFileL | ( | const TDesC & | aLocalPathName, |
const TDesC & | aRemotePathName, | |||
const TDesC8 & | aMimeType, | |||
TInt | aOffset, | |||
TInt | aLength, | |||
TInt | aTotalLength, | |||
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Puts a range of a file to the server. A non-zero aLength means partial file putting. The access protocol/server doesn't have to support partial file putting. In this case, it should return KErrNotSupported (if aLength is not zero)
const TDesC & aLocalPathName | path name of the local file |
const TDesC & aRemotePathName | path name of the remote file |
const TDesC8 & aMimeType | |
TInt aOffset | offset of the first byte to be accessed |
TInt aLength | length of data to be accessed/was accessed (NULL/0=all) |
TInt aTotalLength | total length of the file, set to 0 if not known |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | PutFileL | ( | const TDesC & | aLocalPathName, |
const TDesC & | aRemotePathName, | |||
const TDesC8 & | aMimeType, | |||
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Puts a file to the server.
const TDesC & aLocalPathName | path name of the local file |
const TDesC & aRemotePathName | path name of the remote file |
const TDesC8 & aMimeType | |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | RefreshLockL | ( | const TDesC & | aPathName, |
TUint & | aTimeout, | |||
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Refreshes the lock of the given file system object Note that this function is not be implemented by all file access protocols (e.g. FTP).
const TDesC & aPathName | path name of the object to be locked |
TUint & aTimeout | the timeout that is requested and granted (in seconds) |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | ReleaseLockL | ( | const TDesC & | aPathName, |
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Releases the lock of the given file system object Note that this function is not be implemented by all file access protocols (e.g. FTP).
const TDesC & aPathName | path name of the object to be locked |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | RenameL | ( | const TDesC & | aSrcPathName, |
const TDesC & | aDstPathName, | |||
TBool | aOverwrite, | |||
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Renames a file or a directory. (may involve movement to another directory).
const TDesC & aSrcPathName | path name of the object to be renamed |
const TDesC & aDstPathName | new path name of the object |
TBool aOverwrite | allow overwriting an existing object |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TUint | SetAttributesL | ( | const TDesC & | aPathName, |
CRsfwDirEntAttr & | aAttr, | |||
MRsfwRemoteAccessResponseHandler * | aResponseHandler | |||
) | [pure virtual] |
Sets attributes of the file or directory given by aPathName parameter. This function is typically only used for files and even then the implementation may do nothing since standard file attributes are implied by the contents of the file or set in conjunction with other operations on the file system object.
const TDesC & aPathName | path name of the file or directory |
CRsfwDirEntAttr & aAttr | attribute structure |
MRsfwRemoteAccessResponseHandler * aResponseHandler | response handler |
TInt | SetLockToken | ( | const TDesC & | aPathName, |
const TDesC8 & | aLockToken | |||
) | [pure virtual] |
Sets lock token for the a given resource This lock token value replaces any previously cached token value
void | SetupL | ( | MRsfwRemoteAccessObserver * | aRsfwRemoteAccessObserver | ) | [pure virtual] |
Set up parameters for operation.
MRsfwRemoteAccessObserver * aRsfwRemoteAccessObserver | MRsfwRemoteAccessObserver for receiving asynchronous events from the accessor plugin, e.g. changes in connectivity. This parameter may be NULL |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.