Changeset 846 for trunk/qmake/project.h


Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/qmake/project.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    7979    QMap<QString, FunctionBlock*> testFunctions, replaceFunctions;
    8080
     81
    8182    bool own_prop;
     83
    8284    QString pfile, cfile;
    8385    QMakeProperty *prop;
     
    106108    void init(QMakeProperty *, const QMap<QString, QStringList> *);
    107109    QStringList &values(const QString &v, QMap<QString, QStringList> &place);
     110
    108111
    109112public:
     
    116119
    117120    enum { ReadCache=0x01, ReadConf=0x02, ReadCmdLine=0x04, ReadProFile=0x08,
    118            ReadPostFiles=0x10, ReadFeatures=0x20, ReadConfigs=0x40, ReadAll=0xFF };
     121           ReadFeatures=0x20, ReadConfigs=0x40, ReadAll=0xFF };
    119122    inline bool parse(const QString &text) { return parse(text, vars); }
    120123    bool read(const QString &project, uchar cmd=ReadAll);
     
    125128
    126129    QString projectFile();
    127     QString configFile();
    128130    inline QMakeProperty *properties() { return prop; }
    129131
     
    149151                        QMap<QString, QStringList> *place=NULL);
    150152
    151     bool isSet(const QString &v);
    152     bool isEmpty(const QString &v);
    153     QStringList &values(const QString &v);
    154     QString first(const QString &v);
    155     QMap<QString, QStringList> &variables();
     153    bool isSet(const QString &v); // No compat mapping, no magic variables
     154    bool isEmpty(const QString &v); // With compat mapping, but no magic variables
     155    QStringList &values(const QString &v); // With compat mapping and magic variables
     156    QString first(const QString &v); // ditto
     157    QMap<QString, QStringList> &variables(); // No compat mapping and magic, obviously
     158
     159    bool isRecursive() const { return recursive; }
    156160
    157161protected:
     
    170174}
    171175
    172 inline QString QMakeProject::configFile()
    173 { return cfile; }
    174 
    175176inline QStringList &QMakeProject::values(const QString &v)
    176177{ return values(v, vars); }
    177 
    178 inline bool QMakeProject::isEmpty(const QString &v)
    179 { return !isSet(v) || values(v).isEmpty(); }
    180178
    181179inline bool QMakeProject::isSet(const QString &v)
     
    193191{ return vars; }
    194192
    195 // Helper functions needed for Symbian
    196 bool isForSymbian();
    197 bool isForSymbianSbsv2();
    198 
    199193QT_END_NAMESPACE
    200194
Note: See TracChangeset for help on using the changeset viewer.