remotestoragefw/remotefileengine/inc/rsfwfileentry.inl
changeset 0 3ad9d5175a89
equal deleted inserted replaced
-1:000000000000 0:3ad9d5175a89
       
     1 /*
       
     2 * Copyright (c) 2003-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  inlines for file entry data structure
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // ----------------------------------------------------------------------------
       
    21 // CRsfwFileEntry::Fid
       
    22 // ----------------------------------------------------------------------------
       
    23 // 
       
    24 inline const TFid& CRsfwFileEntry::Fid() const
       
    25     {
       
    26     return iFid;
       
    27     }
       
    28     
       
    29 // ----------------------------------------------------------------------------
       
    30 // CRsfwFileEntry::SetFid
       
    31 // ----------------------------------------------------------------------------
       
    32 //     
       
    33 inline void CRsfwFileEntry::SetFid(const TFid& aFid)
       
    34     {
       
    35     iFid = aFid;
       
    36     }
       
    37 
       
    38 // ----------------------------------------------------------------------------
       
    39 // CRsfwFileEntry::Name
       
    40 // ----------------------------------------------------------------------------
       
    41 // 
       
    42 inline const TDesC* CRsfwFileEntry::Name() const
       
    43     {
       
    44     return iName;
       
    45     }
       
    46 
       
    47 // ----------------------------------------------------------------------------
       
    48 // CRsfwFileEntry::Type
       
    49 // ----------------------------------------------------------------------------
       
    50 // 
       
    51 inline TUint8 CRsfwFileEntry::Type() const
       
    52     {
       
    53     return iType;
       
    54     }
       
    55 
       
    56 // ----------------------------------------------------------------------------
       
    57 // CRsfwFileEntry::Size
       
    58 // ----------------------------------------------------------------------------
       
    59 // 
       
    60 inline TInt CRsfwFileEntry::Size() const
       
    61     {
       
    62     return iSize;
       
    63     }
       
    64 
       
    65 // ----------------------------------------------------------------------------
       
    66 // CRsfwFileEntry::Modified
       
    67 // ----------------------------------------------------------------------------
       
    68 // 
       
    69 inline TTime CRsfwFileEntry::Modified() const
       
    70     {
       
    71     return iModified;
       
    72     }
       
    73 
       
    74 // ----------------------------------------------------------------------------
       
    75 // CRsfwFileEntry::Att
       
    76 // ----------------------------------------------------------------------------
       
    77 // 
       
    78 inline TUint CRsfwFileEntry::Att() const
       
    79     {
       
    80     return iAtt;
       
    81     }
       
    82 
       
    83 // ----------------------------------------------------------------------------
       
    84 // CRsfwFileEntry::MimeType
       
    85 // ----------------------------------------------------------------------------
       
    86 // 
       
    87 inline const TDesC8* CRsfwFileEntry::MimeType() const
       
    88     {
       
    89     return iMimeType;
       
    90     }
       
    91 
       
    92 // ----------------------------------------------------------------------------
       
    93 // CRsfwFileEntry::OpaqueFileId
       
    94 // ----------------------------------------------------------------------------
       
    95 // 
       
    96 inline const TDesC8* CRsfwFileEntry::OpaqueFileId() const
       
    97     {
       
    98     return iOpaqueFileId;
       
    99     }
       
   100 
       
   101 // ----------------------------------------------------------------------------
       
   102 // CRsfwFileEntry::SetUid
       
   103 // ----------------------------------------------------------------------------
       
   104 // 
       
   105 inline void CRsfwFileEntry::SetUid(TUid anUid) 
       
   106     {
       
   107     iUid = anUid;
       
   108     }
       
   109 
       
   110 // ----------------------------------------------------------------------------
       
   111 // CRsfwFileEntry::Parent
       
   112 // ----------------------------------------------------------------------------
       
   113 // 
       
   114 inline CRsfwFileEntry* CRsfwFileEntry::Parent()
       
   115     {
       
   116     return iParent;
       
   117     }
       
   118 
       
   119 // ----------------------------------------------------------------------------
       
   120 // CRsfwFileEntry::SetParent
       
   121 // ----------------------------------------------------------------------------
       
   122 // 
       
   123 inline void CRsfwFileEntry::SetParent(CRsfwFileEntry* aParent)
       
   124     {
       
   125     // This meta data event is handle in kid Add/Remove functions
       
   126     iParent = aParent;
       
   127     }
       
   128 
       
   129 // ----------------------------------------------------------------------------
       
   130 // CRsfwFileEntry::CachePriority
       
   131 // ----------------------------------------------------------------------------
       
   132 // 
       
   133 inline TInt CRsfwFileEntry::CachePriority() const
       
   134     {
       
   135     return iCachePriority;
       
   136     }
       
   137 
       
   138 // ----------------------------------------------------------------------------
       
   139 // CRsfwFileEntry::IsFlagged
       
   140 // ----------------------------------------------------------------------------
       
   141 // 
       
   142 inline TBool CRsfwFileEntry::IsFlagged(TUint aFlag) const
       
   143     {
       
   144     return (iFlags & aFlag) != 0;
       
   145     }
       
   146 
       
   147 // ----------------------------------------------------------------------------
       
   148 // CRsfwFileEntry::Kids
       
   149 // ----------------------------------------------------------------------------
       
   150 // 
       
   151 inline RPointerArray<CRsfwFileEntry>* CRsfwFileEntry::Kids()
       
   152     {
       
   153     return &iKids;
       
   154     }
       
   155 
       
   156 // ----------------------------------------------------------------------------
       
   157 // CRsfwFileEntry::LockToken
       
   158 // ----------------------------------------------------------------------------
       
   159 // 
       
   160 inline const TDesC8* CRsfwFileEntry::LockToken()
       
   161     {
       
   162     return iLockToken;
       
   163     }
       
   164 
       
   165