VirtualBox

Changeset 70826 in vbox


Ignore:
Timestamp:
Jan 31, 2018 12:17:13 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120631
Message:

FE/Qt: bugref:9104: Reworking VBoxVersion stuff: Doxy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVersion.h

    r70824 r70826  
    1919#define ___UIVersion_h___
    2020
    21 /**
    22  *  Represents VirtualBox version wrapper
    23  */
     21/** Represents VirtualBox version wrapper. */
    2422class UIVersion
    2523{
    2624public:
    2725
     26    /** Constructs default object. */
    2827    UIVersion() : m_x(-1), m_y(-1), m_z(-1) {}
    2928
     29    /** Constructs object based on parsed @a strVersion. */
    3030    UIVersion(const QString &strVersion)
    3131        : m_x(-1), m_y(-1), m_z(-1)
     
    4040    }
    4141
     42    /** Assigns this object with value of @a other. */
    4243    UIVersion& operator=(const UIVersion &other) { m_x = other.x(); m_y = other.y(); m_z = other.z(); return *this; }
    4344
     45    /** Returns whether this object is valid. */
    4446    bool isValid() const { return m_x != -1 && m_y != -1 && m_z != -1; }
    4547
     48    /** Returns whether this object is equal to @a other. */
    4649    bool equal(const UIVersion &other) const { return (m_x == other.m_x) && (m_y == other.m_y) && (m_z == other.m_z); }
     50    /** Checks whether this object is equal to @a other. */
    4751    bool operator==(const UIVersion &other) const { return equal(other); }
     52    /** Checks whether this object is NOT equal to @a other. */
    4853    bool operator!=(const UIVersion &other) const { return !equal(other); }
    4954
     55    /** Checks whether this object is lass than @a other. */
    5056    bool operator<(const UIVersion &other) const
    5157    {
     
    5460               (m_x == other.m_x && m_y == other.m_y && m_z <  other.m_z);
    5561    }
     62    /** Checks whether this object is more than @a other. */
    5663    bool operator>(const UIVersion &other) const
    5764    {
     
    6168    }
    6269
     70    /** Returns object string representation. */
    6371    QString toString() const
    6472    {
     
    6674    }
    6775
     76    /** Returns the object X value. */
    6877    int x() const { return m_x; }
     78    /** Returns the object Y value. */
    6979    int y() const { return m_y; }
     80    /** Returns the object Z value. */
    7081    int z() const { return m_z; }
    7182
    7283private:
    7384
     85    /** Holds the object X value. */
    7486    int m_x;
     87    /** Holds the object Y value. */
    7588    int m_y;
     89    /** Holds the object Z value. */
    7690    int m_z;
    7791};
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette