epoc32/include/exiftag.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2003, 2004 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@2
     5
* 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
williamr@2
     6
* which accompanies this distribution, and is available
williamr@2
     7
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:  Exif tag wrapper 
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
williamr@2
    20
#ifndef EXIFTAG_H
williamr@2
    21
#define EXIFTAG_H
williamr@2
    22
williamr@2
    23
//  INCLUDES
williamr@2
    24
#include <e32base.h>
williamr@2
    25
williamr@2
    26
// CONSTANTS
williamr@2
    27
williamr@2
    28
// MACROS
williamr@2
    29
williamr@2
    30
// DATA TYPES
williamr@2
    31
williamr@2
    32
// FUNCTION PROTOTYPES
williamr@2
    33
williamr@2
    34
// FORWARD DECLARATIONS
williamr@2
    35
class TExifTagInfo;
williamr@2
    36
williamr@2
    37
// CLASS DECLARATION
williamr@2
    38
williamr@2
    39
/**
williamr@2
    40
*  Interface class for handling Exif Tags. 
williamr@2
    41
*  This class is used to get tag data from an Exif image.
williamr@2
    42
*  @lib ExifLib
williamr@2
    43
*  @since 2.6 
williamr@2
    44
*/
williamr@2
    45
NONSHARABLE_CLASS( CExifTag ): public CBase
williamr@2
    46
    {
williamr@2
    47
	public:  // Enumerations
williamr@2
    48
williamr@2
    49
        /**
williamr@2
    50
        * Tag Data type enumeration.
williamr@2
    51
        */
williamr@2
    52
    	enum TExifTagDataType
williamr@2
    53
            {
williamr@2
    54
        	ETagByte = 1,
williamr@2
    55
        	ETagAscii = 2,
williamr@2
    56
        	ETagShort = 3,
williamr@2
    57
        	ETagLong = 4,
williamr@2
    58
        	ETagRational = 5,
williamr@2
    59
        	ETagUndefined = 7,
williamr@2
    60
        	ETagSlong = 9,
williamr@2
    61
        	ETagSrational = 10
williamr@2
    62
            };
williamr@2
    63
williamr@2
    64
    public:
williamr@2
    65
        
williamr@2
    66
        /**
williamr@2
    67
        * Destructor.
williamr@2
    68
        */
williamr@2
    69
        virtual ~CExifTag();
williamr@2
    70
williamr@2
    71
    public: // New functions
williamr@2
    72
        
williamr@2
    73
        /**
williamr@2
    74
        * Duplicate constructor. Creates an exact copy instance of the tag.
williamr@2
    75
        * @since 2.6 
williamr@2
    76
        * @param 
williamr@2
    77
        * @return An instance of this class including the same contents of 
williamr@2
    78
        * this instance.
williamr@2
    79
        */
williamr@2
    80
     	virtual CExifTag* DuplicateL() const = 0;
williamr@2
    81
williamr@2
    82
        /**
williamr@2
    83
        * Returns the informative fields of a tag.
williamr@2
    84
        * @since 2.6 
williamr@2
    85
        * @param 
williamr@2
    86
        * @return TExifTagInfo structure including informative fields of a tag
williamr@2
    87
        */
williamr@2
    88
    	virtual TExifTagInfo TagInfo() const = 0;
williamr@2
    89
williamr@2
    90
        /**
williamr@2
    91
        * Returns data contents of a tag
williamr@2
    92
        * @since 2.6 
williamr@2
    93
        * @param 
williamr@2
    94
        * @return Unmodifiable pointer to tag data.
williamr@2
    95
        */
williamr@2
    96
    	virtual TPtrC8 Data() const = 0;
williamr@2
    97
williamr@2
    98
    };
williamr@2
    99
williamr@2
   100
williamr@2
   101
class TExifTagInfo
williamr@2
   102
    {    
williamr@2
   103
    public:  // Constructors and destructor
williamr@2
   104
williamr@2
   105
        IMPORT_C TExifTagInfo( 
williamr@2
   106
            TUint16 aTagId, 
williamr@2
   107
            CExifTag::TExifTagDataType aDataType, 
williamr@2
   108
            TUint32 aDataCount );
williamr@2
   109
    
williamr@2
   110
    public:     // Data
williamr@2
   111
williamr@2
   112
        // Tag ID
williamr@2
   113
    	TUint16 iId;
williamr@2
   114
williamr@2
   115
        // Tag data type
williamr@2
   116
    	CExifTag::TExifTagDataType iDataType;
williamr@2
   117
williamr@2
   118
        // Number of tag data elements (having tag data type).
williamr@2
   119
    	TUint32 iDataCount;
williamr@2
   120
    };
williamr@2
   121
williamr@2
   122
#endif      // EXIFTAG_H   
williamr@2
   123
            
williamr@2
   124
// End of File