bool operator<(const RVersionNumber& other) const { if (versionMajor() == other.versionMajor() && versionMinor() == other.versionMinor()) return versionPatch() < other.versionPatch(); else if (versionMajor() == other.versionMajor()) return versionMinor() < other.versionMinor(); else return versionMajor() < other.versionMajor(); }
bool MessageHeader::isKeepAlive() const { const char* ch = get("Connection"); if (ch == 0) return versionMajor() == 1 && versionMinor() >= 1; else return compareIgnoreCase(ch, "keep-alive") == 0; }
/** Adds context-related hints with default values. */ ContextHints::ContextHints() { // set default values setAPIGL(); versionMajor(1); versionMinor(1); setNoRobustness(); forwardCompat(false); debug(false); setProfileAny(); }
bool operator==(const RVersionNumber& other) const { return versionMajor() == other.versionMajor() && versionMinor() == other.versionMinor() && versionPatch() == other.versionPatch(); }
KEXICORE_EXPORT unsigned int Kexi::stableVersionMajor() { return (versionRelease() > 50 && versionMinor() == 9) ? (versionMajor() + 1) // e.g. 2.9.70 -> 3.0.0 : versionMajor(); // e.g. 2.3.70 -> 2.4.0 or // e.g. 2.4.0 -> 2.4.0 }