ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
filelistitem.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) by Fred Klaus *
3  * development@fkweb.de *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 #ifndef SDLTK_FILE_LIST_ITEM_H
21 #define SDLTK_FILE_LIST_ITEM_H
22 
23 #include "listitem.h"
24 #include "filename.h"
25 
26 namespace sdltk
27 {
28 
30  class FileListItem : public ListItem, public FileName
31  {
32 
33  public:
39 
40  void setFileName(const FileName & filename) {*this = filename;}
41 
42  const FileName & filename() {return *this;}
43 
44  };
45 
46 } // sdltk
47 
48 #endif // SDLTK_FILE_LIST_ITEM_H
FileListItem() ROLAND_DELETE FileListItem(const FileName &filename)
Constructs an Item based on FileName.
[std::string] extension for filenames
Definition: filename.h:39
const FileName & filename()
Definition: filelistitem.h:42
Represents an item which can be hold by a List.
Definition: listitem.h:31
Represents a file list entry.
Definition: filelistitem.h:30
virtual ~FileListItem() ROLAND_DEFAULT void setFileName(const FileName &filename)
Standarddestructor.
Definition: filelistitem.h:38
#define ROLAND_DEFAULT
Definition: compspec.h:46
the SDL based Stuff
Definition: audio.cpp:22
#define ROLAND_DELETE
Definition: compspec.h:47