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