src/hbcore/cssparser/hbwidgetstyleloader_p.h
changeset 21 4633027730f5
parent 5 627c4a0fd0e7
child 23 e6ad4ef83b23
equal deleted inserted replaced
7:923ff622b8b9 21:4633027730f5
    63         FileSetType_Pattern,
    63         FileSetType_Pattern,
    64         FileSetType_CSS,
    64         FileSetType_CSS,
    65         FileSetType_WidgetML
    65         FileSetType_WidgetML
    66     };
    66     };
    67 
    67 
       
    68     enum PatternType {
       
    69         PatternType_None,
       
    70         PatternType_CSS,
       
    71         PatternType_WidgetML
       
    72     };
       
    73 
    68     bool doAddFileSet(
    74     bool doAddFileSet(
    69         const QString &path,
    75         const QString &path,
    70         FileSetType type,
    76         FileSetType type,
       
    77         PatternType patternType,
    71         const HbLayeredStyleLoader::Concern concern,
    78         const HbLayeredStyleLoader::Concern concern,
    72 		const HbLayeredStyleLoader::LayerPriority priority);
    79 		const HbLayeredStyleLoader::LayerPriority priority);
    73 
    80 
    74 	bool doRemoveFileSet(
    81 	bool doRemoveFileSet(
    75         const QString &path,
    82         const QString &path,
    76         const HbLayeredStyleLoader::Concern *concern = 0,
    83         const HbLayeredStyleLoader::Concern concern,
    77 		const HbLayeredStyleLoader::LayerPriority *priority = 0);
    84 		const HbLayeredStyleLoader::LayerPriority priority);
    78 
    85 
    79     struct FileSet {
    86     struct FileSet {
    80 		QString path;
    87 		QString path;
    81         FileSetType type;
    88         FileSetType type;
       
    89         PatternType patternType;
    82 		HbLayeredStyleLoader::Concern concern;
    90 		HbLayeredStyleLoader::Concern concern;
    83 		HbLayeredStyleLoader::LayerPriority priority;
    91 		HbLayeredStyleLoader::LayerPriority priority;
    84 		QHash<QString,int> loadedCss;
    92 		QHash<uint,int> loadedCss;
    85         QStringList missedCss;
    93         QList<uint> missedCss;
    86         int referenceCount;
    94         int referenceCount;
    87 		
    95 		
    88 		FileSet(const QString &pat,
    96 		FileSet(const QString &pat,
    89                 FileSetType typ,
    97                 FileSetType typ,
       
    98                 PatternType pattern,
    90                 const HbLayeredStyleLoader::Concern con,
    99                 const HbLayeredStyleLoader::Concern con,
    91 				const HbLayeredStyleLoader::LayerPriority pri) {
   100 				const HbLayeredStyleLoader::LayerPriority pri) {
    92 			path = pat;
   101 			path = pat;
    93             type = typ;
   102             type = typ;
       
   103             patternType = pattern;
    94 			concern = con;
   104 			concern = con;
    95 			priority = pri;
   105 			priority = pri;
    96             referenceCount = 1;
   106             referenceCount = 1;
    97 		}
   107 		}
    98 	};
   108 	};