00001 /* 00002 This file is part of the OPIE Project 00003 00004 =. Copyright (c) 2002 Andy Qua <andy.qua@blueyonder.co.uk> 00005 .=l. Dan Williams <drw@handhelds.org> 00006 .>+-= 00007 _;:, .> :=|. This file is free software; you can 00008 .> <`_, > . <= redistribute it and/or modify it under 00009 :`=1 )Y*s>-.-- : the terms of the GNU General Public 00010 .="- .-=="i, .._ License as published by the Free Software 00011 - . .-<_> .<> Foundation; either version 2 of the License, 00012 ._= =} : or (at your option) any later version. 00013 .%`+i> _;_. 00014 .i_,=:_. -<s. This file is distributed in the hope that 00015 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00016 : .. .:, . . . without even the implied warranty of 00017 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00018 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General 00019 ..}^=.= = ; Public License for more details. 00020 ++= -. .` .: 00021 : = ...= . :.=- You should have received a copy of the GNU 00022 -. .:....=;==+<; General Public License along with this file; 00023 -_. . . )=. = see the file COPYING. If not, write to the 00024 -- :-=` Free Software Foundation, Inc., 00025 59 Temple Place - Suite 330, 00026 Boston, MA 02111-1307, USA. 00027 00028 */ 00029 00030 #ifndef DESTINATION_H 00031 #define DESTINATION_H 00032 00033 #include <qstring.h> 00034 00035 class Destination 00036 { 00037 public: 00038 Destination() {} 00039 Destination( const char *name, const char *path ); 00040 ~Destination(); 00041 00042 void setDestinationName( const QString &name ) { destName = name; } 00043 void setDestinationPath( const QString &path ) { destPath = path; } 00044 void linkToRoot( bool val ) { linkToRootDir = val; } 00045 00046 bool linkToRoot() { return linkToRootDir; } 00047 QString &getDestinationName() { return destName; } 00048 QString &getDestinationPath() { return destPath; } 00049 00050 protected: 00051 00052 private: 00053 QString destName; 00054 QString destPath; 00055 bool linkToRootDir; 00056 }; 00057 00058 #endif
1.4.2