1*53a9af0aSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*53a9af0aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*53a9af0aSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*53a9af0aSAndrew Rist * distributed with this work for additional information 6*53a9af0aSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*53a9af0aSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*53a9af0aSAndrew Rist * "License"); you may not use this file except in compliance 9*53a9af0aSAndrew Rist * with the License. You may obtain a copy of the License at 10*53a9af0aSAndrew Rist * 11*53a9af0aSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*53a9af0aSAndrew Rist * 13*53a9af0aSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*53a9af0aSAndrew Rist * software distributed under the License is distributed on an 15*53a9af0aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*53a9af0aSAndrew Rist * KIND, either express or implied. See the License for the 17*53a9af0aSAndrew Rist * specific language governing permissions and limitations 18*53a9af0aSAndrew Rist * under the License. 19*53a9af0aSAndrew Rist * 20*53a9af0aSAndrew Rist *************************************************************/ 21*53a9af0aSAndrew Rist 22*53a9af0aSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #include <tools/stream.hxx> 25cdf0e10cSrcweir 26cdf0e10cSrcweir class GenericInformationList; 27cdf0e10cSrcweir 28cdf0e10cSrcweir // 29cdf0e10cSrcweir // class MinorMk 30cdf0e10cSrcweir // 31cdf0e10cSrcweir 32cdf0e10cSrcweir class MinorMk : public SvFileStream 33cdf0e10cSrcweir { 34cdf0e10cSrcweir private: 35cdf0e10cSrcweir ByteString sRSCVERSION; 36cdf0e10cSrcweir ByteString sRSCREVISION; 37cdf0e10cSrcweir ByteString sBUILD; 38cdf0e10cSrcweir ByteString sLAST_MINOR; 39cdf0e10cSrcweir 40cdf0e10cSrcweir sal_Bool bExists; 41cdf0e10cSrcweir 42cdf0e10cSrcweir void ReadMinorMk( const String &rFileName ); 43cdf0e10cSrcweir 44cdf0e10cSrcweir public: 45cdf0e10cSrcweir MinorMk( 46cdf0e10cSrcweir GenericInformationList *pList, 47cdf0e10cSrcweir const ByteString &rVersion, 48cdf0e10cSrcweir const ByteString &rWorkStamp, 49cdf0e10cSrcweir const ByteString &rEnvironment, 50cdf0e10cSrcweir const ByteString &rMinor 51cdf0e10cSrcweir ); 52cdf0e10cSrcweir MinorMk( 53cdf0e10cSrcweir const ByteString &rMinor, 54cdf0e10cSrcweir const ByteString &rEnvironment 55cdf0e10cSrcweir ); 56cdf0e10cSrcweir MinorMk( 57cdf0e10cSrcweir GenericInformationList *pList, 58cdf0e10cSrcweir const ByteString rVersion 59cdf0e10cSrcweir ); 60cdf0e10cSrcweir ~MinorMk(); 61cdf0e10cSrcweir GetRscVersion()62cdf0e10cSrcweir ByteString GetRscVersion() 63cdf0e10cSrcweir { return sRSCVERSION; } GetRscRevision()64cdf0e10cSrcweir ByteString GetRscRevision() 65cdf0e10cSrcweir { return sRSCREVISION; } GetBuildNr()66cdf0e10cSrcweir ByteString GetBuildNr() 67cdf0e10cSrcweir { return sBUILD; } GetLastMinor()68cdf0e10cSrcweir ByteString GetLastMinor() 69cdf0e10cSrcweir { return sLAST_MINOR; } 70cdf0e10cSrcweir Exists()71cdf0e10cSrcweir sal_Bool Exists() 72cdf0e10cSrcweir { return bExists; } 73cdf0e10cSrcweir }; 74