xref: /AOO41X/main/soldep/inc/dep.hxx (revision 53a9af0a251b18e3c3b23eacf3a4922b098ea5c4)
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 #ifndef _DEP_HXX
25 #define _DEP_HXX
26 
27 #include <soldep/sstring.hxx>
28 
29 class SByteExtStringList : public SByteStringList
30 {
31     private:
32         sal_Bool        bDeleteStrings;
33     public:
SByteExtStringList(sal_Bool bDelete=sal_True)34         SByteExtStringList(sal_Bool bDelete = sal_True) : bDeleteStrings (bDelete) {}
35         ~SByteExtStringList();
36 };
37 
38 class VersionDepInfo : public SByteExtStringList
39 {
40     private:
41         ByteString*                 pVersion;
42     public:
VersionDepInfo()43         VersionDepInfo() : pVersion (NULL) {}
VersionDepInfo(const ByteString & rCurrentVersion)44         VersionDepInfo(const ByteString& rCurrentVersion) : pVersion (NULL) { pVersion = new ByteString(rCurrentVersion); }
45         ~VersionDepInfo();
46         void                Clear();
GetVersion()47         const ByteString*   GetVersion() { return pVersion; }
48         //void              SetVersion(ByteString* pStr) { pVersion = pStr; }
49 };
50 
51 DECLARE_LIST( VersionDepInfoList_Impl, VersionDepInfo* )
52 
53 class VersionDepInfoList : public VersionDepInfoList_Impl
54 {
55     public:
VersionDepInfoList()56         VersionDepInfoList () {}
~VersionDepInfoList()57         ~VersionDepInfoList () {}
58         VersionDepInfo*     GetVersion (ByteString& rVersion);
59         void                RemoveVersion (ByteString& rVersion);
60         VersionDepInfo*     InsertVersion (ByteString& rVersion);
61 
62 };
63 
64 
65 #endif
66