aknlayoutcompiler/inc/MLAttributes.h
changeset 0 f58d6ec98e88
equal deleted inserted replaced
-1:000000000000 0:f58d6ec98e88
       
     1 /*
       
     2 * Copyright (c) 2005 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MLATTRIBUTES_H
       
    20 #define MLATTRIBUTES_H
       
    21 
       
    22 // disable "identifier was truncated to '255' characters in the browser information" warning
       
    23 #pragma warning (disable:4786)
       
    24 
       
    25 // disable "decorated name length exceeded, name was truncated"
       
    26 #pragma warning (disable:4503)
       
    27 
       
    28 
       
    29 #include <string>
       
    30 #include <iosfwd>
       
    31 #include <map>
       
    32 
       
    33 using namespace std;
       
    34 
       
    35 class TMLAttributes;
       
    36 
       
    37 /**
       
    38 *  TMLAttributeSet
       
    39 *  The attributes stored in an attribute set
       
    40 */
       
    41 typedef map<int, string> TMLAttributeZoomLevels;
       
    42 class TMLAttributeSet : public map<int, TMLAttributeZoomLevels>
       
    43 	{
       
    44 public: // constructors, operators, etc
       
    45 	TMLAttributeSet();
       
    46 	TMLAttributeSet(TMLAttributes* aAttributes);
       
    47 	virtual ~TMLAttributeSet();
       
    48 public: // new methods
       
    49 	void Merge(TMLAttributeSet& aOther);
       
    50 	void Compile();
       
    51 public: // member data, not owned
       
    52 	TMLAttributes* iAttributes;
       
    53 	};
       
    54 
       
    55 /**
       
    56 *  TMLAttributes
       
    57 *  The attribute values stored in a layout component
       
    58 */
       
    59 typedef map<string, TMLAttributeSet*> TMLAttributeSetComponent;
       
    60 class TMLAttributes: public map<int, TMLAttributeSetComponent>
       
    61 	{
       
    62 public:
       
    63 	typedef map<string, int> TMLAttributeNames;
       
    64 public: // constructors, operators, etc
       
    65 	TMLAttributes();
       
    66 	virtual ~TMLAttributes();
       
    67 public: // new methods
       
    68 	void Merge(TMLAttributes& aOther);
       
    69 	void Compile();
       
    70 public: // member data, owned
       
    71 	string iName;
       
    72 	string iTimestamp;
       
    73 	bool iCanBeMirror;
       
    74 	TMLAttributeNames iNames;
       
    75 	};
       
    76 
       
    77 #endif // MLATTRIBUTES_H
       
    78 // End of File