imgtools/imglib/filesystem/source/longentry.cpp
changeset 0 044383f39525
child 590 360bd6b35136
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 /*
       
     2 * Copyright (c) 2006-2009 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 the License "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: 
       
    15 * This class provides the basic set and get operations associated 
       
    16 * with longentry attributes.
       
    17 * @internalComponent
       
    18 * @released
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 #include "longentry.h"
       
    24 
       
    25 /**
       
    26 Constructor responsible to initialze the possible attributes of 
       
    27 long entry
       
    28 
       
    29 @internalComponent
       
    30 @released
       
    31 
       
    32 @param aChckSum - Short entry checksum value
       
    33 */
       
    34 
       
    35 CLongEntry::CLongEntry(	char aChckSum):
       
    36 						iDirOrder(0),
       
    37 						iAttribute(EAttrLongName),
       
    38 						iDirType(KDirSubComponent),
       
    39 						iCheckSum(aChckSum),
       
    40 						iFirstClusterNumberLow(0)						
       
    41 {
       
    42 }
       
    43 
       
    44 /**
       
    45 Destructor:
       
    46 
       
    47 @internalComponent
       
    48 @released
       
    49 
       
    50 */
       
    51 CLongEntry::~CLongEntry()
       
    52 {
       
    53 }
       
    54 
       
    55 /**
       
    56 Function responsible to return Directory entry Order
       
    57 
       
    58 @internalComponent
       
    59 @released
       
    60 
       
    61 @return iDirOrder - Long name sub entry order
       
    62 */
       
    63 char CLongEntry::GetDirOrder() const
       
    64 {
       
    65 	return iDirOrder;
       
    66 }
       
    67 
       
    68 /**
       
    69 Function responsible to initialize Directory entry Order
       
    70 
       
    71 @internalComponent
       
    72 @released
       
    73 
       
    74 @param aDirOrder - Long name sub entry order
       
    75 */
       
    76 void CLongEntry::SetDirOrder(char aDirOrder)
       
    77 {
       
    78 	iDirOrder = aDirOrder;
       
    79 }
       
    80 
       
    81 /**
       
    82 Function responsible to return SubName1
       
    83 
       
    84 @internalComponent
       
    85 @released
       
    86 
       
    87 @return iSubName1 - returns sub name 1 of a long entry
       
    88 */
       
    89 String& CLongEntry::GetSubName1()
       
    90 {
       
    91 	return iSubName1;
       
    92 }
       
    93 
       
    94 /**
       
    95 Function responsible to set SubName3
       
    96 
       
    97 @internalComponent
       
    98 @released
       
    99 
       
   100 @param aSubName1 - a long entry sub name 1
       
   101 */
       
   102 void CLongEntry::SetSubName1(String aSubName1)
       
   103 {
       
   104 	iSubName1 = aSubName1;
       
   105 }
       
   106 
       
   107 /**
       
   108 Function responsible to return SubName2
       
   109 
       
   110 @internalComponent
       
   111 @released
       
   112 
       
   113 @return iSubName2 - returns sub name 2 of a long entry
       
   114 */
       
   115 String& CLongEntry::GetSubName2()
       
   116 {
       
   117 	return iSubName2;
       
   118 }
       
   119 
       
   120 /**
       
   121 Function responsible to set SubName2
       
   122 
       
   123 @internalComponent
       
   124 @released
       
   125 
       
   126 @param aSubName2 - a long entry sub name 2
       
   127 */
       
   128 void CLongEntry::SetSubName2(String aSubName2)
       
   129 {
       
   130 	iSubName2 = aSubName2;
       
   131 }
       
   132 
       
   133 /**
       
   134 Function responsible to return SubName3
       
   135 
       
   136 @internalComponent
       
   137 @released
       
   138 
       
   139 @return iSubName3 - returns sub name 3 of a long entry
       
   140 */
       
   141 String& CLongEntry::GetSubName3()
       
   142 {
       
   143 	return iSubName3;
       
   144 }
       
   145 
       
   146 /**
       
   147 Function responsible to set SubName3
       
   148 
       
   149 @internalComponent
       
   150 @released
       
   151 
       
   152 @param aSubName3 - a long entry sub name 3
       
   153 */
       
   154 void CLongEntry::SetSubName3(String aSubName3)
       
   155 {
       
   156 	iSubName3 = aSubName3;
       
   157 }
       
   158 
       
   159 /**
       
   160 Function responsible to return attribute
       
   161 
       
   162 @internalComponent
       
   163 @released
       
   164 
       
   165 @return iAttribute - returns a long entry attribute
       
   166 */
       
   167 char CLongEntry::GetAttribute() const
       
   168 {
       
   169 	return iAttribute;
       
   170 }
       
   171 
       
   172 /**
       
   173 Function responsible to return check sum
       
   174 
       
   175 @internalComponent
       
   176 @released
       
   177 
       
   178 @return iCheckSum - returns long entry check sum
       
   179 */
       
   180 char CLongEntry::GetCheckSum() const
       
   181 {
       
   182 	return iCheckSum;
       
   183 }
       
   184 
       
   185 /**
       
   186 Function responsible to return Dir Type
       
   187 
       
   188 @internalComponent
       
   189 @released
       
   190 
       
   191 @return iDirType - returns long entry dir type
       
   192 */
       
   193 char CLongEntry::GetDirType() const
       
   194 {
       
   195 	return iDirType;
       
   196 }
       
   197 
       
   198 /**
       
   199 Function responsible to return Low cluster number
       
   200 
       
   201 @internalComponent
       
   202 @released
       
   203 
       
   204 @return iFirstClusterNumberLow - returns Low cluster number
       
   205 */
       
   206 unsigned short int CLongEntry::GetClusterNumberLow() const
       
   207 {
       
   208 	return iFirstClusterNumberLow;
       
   209 }