versioninfo.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : versioninfo.h
00004 *  Part of     : Common Services / Platform Environment
00005 *  Interface   : SDK, Version Info API
00006 *  Description : Interface for quering system version information.
00007 *  Version     : %version: 1 %
00008 *
00009 *  Copyright © 2007 Nokia. All rights reserved.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia. All rights are reserved. Copying, including 
00013 *  reproducing, storing, adapting or translating, any 
00014 *  or all of this material requires the prior written consent of 
00015 *  Nokia. This material also contains confidential 
00016 *  information which may not be disclosed to others without the 
00017 *  prior written consent of Nokia.
00018 * ==============================================================================
00019 */
00020 
00021 
00022 #ifndef VERSION_INFO_H
00023 #define VERSION_INFO_H
00024 
00025 //  INCLUDES
00026 #include <e32std.h>
00027 
00028 // FORWARD DECLARATIONS
00029 class RFs;
00030 
00031 // CLASS DECLARATION
00055 NONSHARABLE_CLASS(VersionInfo)
00056     {
00057 
00058 public:
00063     class TVersionBase
00064         {
00065     friend class VersionInfo;
00066 
00067     protected:
00073         inline TVersionBase( TInt aType );
00074 
00075     private:
00079         TVersionBase();
00080 
00081     private:
00083         TInt iType;
00084         };
00085 
00091     class TPlatformVersion : public TVersionBase
00092         {
00093     public:
00097         inline TPlatformVersion();
00098 
00099     public:
00101         TUint16 iMajorVersion;
00102 
00104         TUint16 iMinorVersion;
00105         };
00106 
00116     IMPORT_C static TInt GetVersion( TVersionBase& aVersion );
00117 
00129     IMPORT_C static TInt GetVersion( TVersionBase& aVersion, RFs& aFs );
00130 
00131 private:
00135     VersionInfo();
00136 
00138     enum TVersionType
00139         {
00140         EPlatformVersion = 0
00141         };
00142     };
00143 
00144 #include "versioninfo.inl"
00145 
00146 // VERSION_INFO_H
00147 #endif
00148 
00149 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top