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