1.1 --- a/epoc32/include/exiftag.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/exiftag.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,124 @@
1.4 -exiftag.h
1.5 +/*
1.6 +* Copyright (c) 2003, 2004 Nokia Corporation and/or its subsidiary(-ies).
1.7 +* All rights reserved.
1.8 +* This component and the accompanying materials are made available
1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.10 +* which accompanies this distribution, and is available
1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.12 +*
1.13 +* Initial Contributors:
1.14 +* Nokia Corporation - initial contribution.
1.15 +*
1.16 +* Contributors:
1.17 +*
1.18 +* Description: Exif tag wrapper
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +
1.24 +#ifndef EXIFTAG_H
1.25 +#define EXIFTAG_H
1.26 +
1.27 +// INCLUDES
1.28 +#include <e32base.h>
1.29 +
1.30 +// CONSTANTS
1.31 +
1.32 +// MACROS
1.33 +
1.34 +// DATA TYPES
1.35 +
1.36 +// FUNCTION PROTOTYPES
1.37 +
1.38 +// FORWARD DECLARATIONS
1.39 +class TExifTagInfo;
1.40 +
1.41 +// CLASS DECLARATION
1.42 +
1.43 +/**
1.44 +* Interface class for handling Exif Tags.
1.45 +* This class is used to get tag data from an Exif image.
1.46 +* @lib ExifLib
1.47 +* @since 2.6
1.48 +*/
1.49 +NONSHARABLE_CLASS( CExifTag ): public CBase
1.50 + {
1.51 + public: // Enumerations
1.52 +
1.53 + /**
1.54 + * Tag Data type enumeration.
1.55 + */
1.56 + enum TExifTagDataType
1.57 + {
1.58 + ETagByte = 1,
1.59 + ETagAscii = 2,
1.60 + ETagShort = 3,
1.61 + ETagLong = 4,
1.62 + ETagRational = 5,
1.63 + ETagUndefined = 7,
1.64 + ETagSlong = 9,
1.65 + ETagSrational = 10
1.66 + };
1.67 +
1.68 + public:
1.69 +
1.70 + /**
1.71 + * Destructor.
1.72 + */
1.73 + virtual ~CExifTag();
1.74 +
1.75 + public: // New functions
1.76 +
1.77 + /**
1.78 + * Duplicate constructor. Creates an exact copy instance of the tag.
1.79 + * @since 2.6
1.80 + * @param
1.81 + * @return An instance of this class including the same contents of
1.82 + * this instance.
1.83 + */
1.84 + virtual CExifTag* DuplicateL() const = 0;
1.85 +
1.86 + /**
1.87 + * Returns the informative fields of a tag.
1.88 + * @since 2.6
1.89 + * @param
1.90 + * @return TExifTagInfo structure including informative fields of a tag
1.91 + */
1.92 + virtual TExifTagInfo TagInfo() const = 0;
1.93 +
1.94 + /**
1.95 + * Returns data contents of a tag
1.96 + * @since 2.6
1.97 + * @param
1.98 + * @return Unmodifiable pointer to tag data.
1.99 + */
1.100 + virtual TPtrC8 Data() const = 0;
1.101 +
1.102 + };
1.103 +
1.104 +
1.105 +class TExifTagInfo
1.106 + {
1.107 + public: // Constructors and destructor
1.108 +
1.109 + IMPORT_C TExifTagInfo(
1.110 + TUint16 aTagId,
1.111 + CExifTag::TExifTagDataType aDataType,
1.112 + TUint32 aDataCount );
1.113 +
1.114 + public: // Data
1.115 +
1.116 + // Tag ID
1.117 + TUint16 iId;
1.118 +
1.119 + // Tag data type
1.120 + CExifTag::TExifTagDataType iDataType;
1.121 +
1.122 + // Number of tag data elements (having tag data type).
1.123 + TUint32 iDataCount;
1.124 + };
1.125 +
1.126 +#endif // EXIFTAG_H
1.127 +
1.128 +// End of File