os/kernelhwsrv/userlibandfileserver/fileserver/inc/common.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// f32\inc\common.h
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
/**
sl@0
    19
 @file
sl@0
    20
 @publishedPartner
sl@0
    21
 @released
sl@0
    22
*/
sl@0
    23
sl@0
    24
#if !defined(__COMMON_H__)
sl@0
    25
#define __COMMON_H__
sl@0
    26
#if !defined(__F32FILE_H__)
sl@0
    27
#include <f32file.h>
sl@0
    28
#endif
sl@0
    29
#include <d32locd.h>
sl@0
    30
#include "u32std.h"
sl@0
    31
sl@0
    32
//
sl@0
    33
// Common constants used by both EFSRV and the filesystems
sl@0
    34
//
sl@0
    35
sl@0
    36
sl@0
    37
sl@0
    38
/**
sl@0
    39
A bit mask representing a volume and file attribute combination.
sl@0
    40
sl@0
    41
It represents a set of attributes that must not be set, unset or used
sl@0
    42
in calls to RFile::Set() and CMountCB::MatchEntryAtt().
sl@0
    43
sl@0
    44
@see CMountCB::MatchEntryAtt()
sl@0
    45
@see RFile::Set()
sl@0
    46
*/
sl@0
    47
const TUint KEntryAttIllegal=(KEntryAttVolume|KEntryAttDir);
sl@0
    48
sl@0
    49
sl@0
    50
sl@0
    51
/**
sl@0
    52
A file attribute that marks the file as having been modified. This is an indication
sl@0
    53
that the file is modified but the modifications are not yet committed.
sl@0
    54
sl@0
    55
@see RFs::SetEntry()
sl@0
    56
*/
sl@0
    57
const TUint KEntryAttModified=0x20000000;
sl@0
    58
sl@0
    59
sl@0
    60
sl@0
    61
/**
sl@0
    62
Defines a criteria that states that an entry must be a file.
sl@0
    63
sl@0
    64
This can be used in calls to CMountCB::MatchEntryAtt().
sl@0
    65
sl@0
    66
@see CMountCB::MatchEntryAtt()
sl@0
    67
*/
sl@0
    68
const TUint KEntryAttMustBeFile=0x80000000;
sl@0
    69
sl@0
    70
sl@0
    71
sl@0
    72
/**
sl@0
    73
Indicates that data is to be read from the current read position when
sl@0
    74
passed to any of the Read() overloaded functions of RFile.
sl@0
    75
sl@0
    76
This is maintained for BC. File server and file server client library, internally, 
sl@0
    77
use KCurrentPosition64 for indicating a read / write request from current file position. 
sl@0
    78
sl@0
    79
@see RFile::Read()
sl@0
    80
@see KCurrentPosition64
sl@0
    81
*/
sl@0
    82
const TInt KCurrentPosition=KMinTInt;
sl@0
    83
sl@0
    84
sl@0
    85
/**
sl@0
    86
Indicates that data is to be read from the current read position when
sl@0
    87
passed to any of the Read() overloaded functions of RFile.
sl@0
    88
sl@0
    89
@prototype
sl@0
    90
sl@0
    91
@see RFile::Read()
sl@0
    92
*/
sl@0
    93
const TInt64 KCurrentPosition64=(TInt64)KMaxTUint64;
sl@0
    94
sl@0
    95
sl@0
    96
sl@0
    97
#endif