1.1 --- a/epoc32/include/swi/AppVersion.inl Wed Mar 31 12:27:01 2010 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,79 +0,0 @@
1.4 -/*
1.5 -* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
1.6 -* All rights reserved.
1.7 -* This component and the accompanying materials are made available
1.8 -* under the terms of the License "Eclipse Public License v1.0"
1.9 -* which accompanies this distribution, and is available
1.10 -* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 -*
1.12 -* Initial Contributors:
1.13 -* Nokia Corporation - initial contribution.
1.14 -*
1.15 -* Contributors:
1.16 -*
1.17 -* Description: Java Registy API header file
1.18 -*
1.19 -*/
1.20 -
1.21 -#ifndef TAPPVERSIONINL_H
1.22 -#define TAPPVERSIONINL_H
1.23 -
1.24 -TAppVersion::TAppVersion()
1.25 - : iMajor(0), iMinor(0), iBuild(0)
1.26 - {
1.27 - }
1.28 -
1.29 -TAppVersion::TAppVersion(const TAppVersion& aAppVersion)
1.30 - : iMajor(aAppVersion.iMajor), iMinor(aAppVersion.iMinor), iBuild(aAppVersion.iBuild)
1.31 - {
1.32 - }
1.33 -
1.34 -TAppVersion::TAppVersion(TInt aMajor, TInt aMinor, TInt aBuild)
1.35 - : iMajor(aMajor), iMinor(aMinor), iBuild(aBuild)
1.36 - {
1.37 - }
1.38 -
1.39 -TAppVersion& TAppVersion::operator =(const TAppVersion& aAppVersion)
1.40 - {
1.41 - // Assignment operator using the copy constructor
1.42 - return *new (this) TAppVersion(aAppVersion);
1.43 - }
1.44 -
1.45 -TBool TAppVersion::operator ==(const TAppVersion& aAppVersion) const
1.46 - {
1.47 - return ((iMajor == aAppVersion.iMajor) &&
1.48 - (iMinor == aAppVersion.iMinor) &&
1.49 - (iBuild == aAppVersion.iBuild));
1.50 - }
1.51 -
1.52 -TBool TAppVersion::operator !=(const TAppVersion& aAppVersion) const
1.53 - {
1.54 - return !(*this == aAppVersion);
1.55 - }
1.56 -
1.57 -TBool TAppVersion::operator <(const TAppVersion& aAppVersion) const
1.58 - {
1.59 - return ((iMajor < aAppVersion.iMajor) ||
1.60 - ((iMajor == aAppVersion.iMajor) && (iMinor < aAppVersion.iMinor)) ||
1.61 - ((iMajor == aAppVersion.iMajor) && (iMinor == aAppVersion.iMinor) &&
1.62 - (iBuild < aAppVersion.iBuild)));
1.63 - }
1.64 -
1.65 -TBool TAppVersion::operator >(const TAppVersion& aAppVersion) const
1.66 - {
1.67 - return (aAppVersion < *this);
1.68 - }
1.69 -
1.70 -TBool TAppVersion::operator <=(const TAppVersion& aAppVersion) const
1.71 - {
1.72 - return !(*this > aAppVersion);
1.73 - }
1.74 -
1.75 -TBool TAppVersion::operator >=(const TAppVersion& aAppVersion) const
1.76 - {
1.77 - return !(*this < aAppVersion);
1.78 - }
1.79 -
1.80 -#endif // TAPPVERSIONINL_H
1.81 -
1.82 -//End of File