src/tools/moc/moc.h
changeset 7 f7bc934e204c
parent 0 1918ee327afb
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the tools applications of the Qt Toolkit.
     7 ** This file is part of the tools applications of the Qt Toolkit.
     8 **
     8 **
   114 };
   114 };
   115 
   115 
   116 struct PropertyDef
   116 struct PropertyDef
   117 {
   117 {
   118     PropertyDef():notifyId(-1), constant(false), final(false), gspec(ValueSpec){}
   118     PropertyDef():notifyId(-1), constant(false), final(false), gspec(ValueSpec){}
   119     QByteArray name, type, read, write, reset, designable, scriptable, editable, stored, user, notify;
   119     QByteArray name, type, read, write, reset, designable, scriptable, editable, stored, user, notify, inPrivateClass;
   120     int notifyId;
   120     int notifyId;
   121     bool constant;
   121     bool constant;
   122     bool final;
   122     bool final;
   123     enum Specification  { ValueSpec, ReferenceSpec, PointerSpec };
   123     enum Specification  { ValueSpec, ReferenceSpec, PointerSpec };
   124     Specification gspec;
   124     Specification gspec;
   215     bool parseMaybeFunction(const ClassDef *cdef, FunctionDef *def);
   215     bool parseMaybeFunction(const ClassDef *cdef, FunctionDef *def);
   216 
   216 
   217     void parseSlots(ClassDef *def, FunctionDef::Access access);
   217     void parseSlots(ClassDef *def, FunctionDef::Access access);
   218     void parseSignals(ClassDef *def);
   218     void parseSignals(ClassDef *def);
   219     void parseProperty(ClassDef *def);
   219     void parseProperty(ClassDef *def);
       
   220     void createPropertyDef(PropertyDef &def);
   220     void parseEnumOrFlag(ClassDef *def, bool isFlag);
   221     void parseEnumOrFlag(ClassDef *def, bool isFlag);
   221     void parseFlag(ClassDef *def);
   222     void parseFlag(ClassDef *def);
   222     void parseClassInfo(ClassDef *def);
   223     void parseClassInfo(ClassDef *def);
   223     void parseInterfaces(ClassDef *def);
   224     void parseInterfaces(ClassDef *def);
   224     void parseDeclareInterface();
   225     void parseDeclareInterface();
   225     void parseDeclareMetatype();
   226     void parseDeclareMetatype();
   226     void parseSlotInPrivate(ClassDef *def, FunctionDef::Access access);
   227     void parseSlotInPrivate(ClassDef *def, FunctionDef::Access access);
       
   228     void parsePrivateProperty(ClassDef *def);
   227 
   229 
   228     void parseFunctionArguments(FunctionDef *def);
   230     void parseFunctionArguments(FunctionDef *def);
   229 
   231 
   230     QByteArray lexemUntil(Token);
   232     QByteArray lexemUntil(Token);
   231     bool until(Token);
   233     bool until(Token);