1.1 --- a/epoc32/include/swi/AppVersion.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,117 +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 TAPPVERSION_H
1.22 -#define TAPPVERSION_H
1.23 -
1.24 -/**
1.25 - * This class is used to represent the version of a Java application.
1.26 - * The standard TVersion provided in Symbian OS can't be used because it
1.27 - * doesn't allow for major and minor version numbers above 127.
1.28 - */
1.29 -class TAppVersion
1.30 - {
1.31 - public:
1.32 -
1.33 - /**
1.34 - * This constructor creates a 0.0.0 version.
1.35 - */
1.36 - inline TAppVersion();
1.37 -
1.38 - /**
1.39 - * This is the copy constructor.
1.40 - * @param aAppVersion is the app version that will be copied
1.41 - */
1.42 - inline TAppVersion(const TAppVersion& aAppVersion);
1.43 -
1.44 - /**
1.45 - * This constructor creates a version according to the arguments.
1.46 - * @param aMajor is the major version number
1.47 - * @param aMinor is the minor version number
1.48 - * @param aBuild is the micro version number
1.49 - */
1.50 - inline TAppVersion(TInt aMajor, TInt aMinor, TInt aBuild);
1.51 -
1.52 - /**
1.53 - * Assignment operator.
1.54 - * @param aAppVersion is the app version to be assigned to the object
1.55 - */
1.56 - inline TAppVersion& operator =(const TAppVersion& aAppVersion);
1.57 -
1.58 - /**
1.59 - * Equality operator.
1.60 - * @param aAppVersion is the app version to be compared with
1.61 - * the object's app version
1.62 - * @return ETrue if the app versions are the same, EFalse otherwise
1.63 - */
1.64 - inline TBool operator ==(const TAppVersion& aAppVersion) const;
1.65 -
1.66 - /**
1.67 - * Inequality operator.
1.68 - * @param aAppVersion is the app version to be compared with
1.69 - * the object's app version
1.70 - * @return ETrue if the app versions are not the same, EFalse otherwise
1.71 - */
1.72 - inline TBool operator !=(const TAppVersion& aAppVersion) const;
1.73 -
1.74 - /**
1.75 - * Less than operator.
1.76 - * @param aAppVersion is the app version to be compared with
1.77 - * the object's app version
1.78 - * @return ETrue if the app version to the left of the operator is less
1.79 - * than the version to the right, EFalse otherwise
1.80 - */
1.81 - inline TBool operator <(const TAppVersion& aAppVersion) const;
1.82 -
1.83 - /**
1.84 - * Greater than operator.
1.85 - * @param aAppVersion is the app version to be compared with
1.86 - * the object's app version
1.87 - * @return ETrue if the app version to the left of the operator is
1.88 - * greater than the version to the right, EFalse otherwise
1.89 - */
1.90 - inline TBool operator >(const TAppVersion& aAppVersion) const;
1.91 -
1.92 - /**
1.93 - * Less or equal operator.
1.94 - * @param aAppVersion is the app version to be compared with
1.95 - * the object's app version
1.96 - * @return ETrue if the app version to the left of the operator is
1.97 - * less than or equal to the version to the right, EFalse otherwise
1.98 - */
1.99 - inline TBool operator <=(const TAppVersion& aAppVersion) const;
1.100 -
1.101 - /**
1.102 - * Greater or equal operator.
1.103 - * @param aAppVersion is the app version to be compared with
1.104 - * the object's app version
1.105 - * @return ETrue if the app version to the left of the operator is
1.106 - * greater than or equal to the version to the right, EFalse otherwise
1.107 - */
1.108 - inline TBool operator >=(const TAppVersion& aAppVersion) const;
1.109 -
1.110 - public:
1.111 - TInt iMajor;
1.112 - TInt iMinor;
1.113 - TInt iBuild;
1.114 - };
1.115 -
1.116 -#include <swi/appversion.inl>
1.117 -
1.118 -#endif // TAPPVERSION_H
1.119 -
1.120 -// End of File