blob: 33f8124c1d7ee2ff1ae9be4361d6fb7c65c5b9fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/*
*
* $Id: k3bsessionimportitem.h 619556 2007-01-03 17:38:12Z trueg $
* Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
*
* This file is part of the K3b project.
* Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* See the file "COPYING" for the exact licensing terms.
*/
#ifndef _K3B_SESSION_IMPORT_ITEM_H_
#define _K3B_SESSION_IMPORT_ITEM_H_
#include "k3bdataitem.h"
class K3bDataDoc;
class K3bFileItem;
class K3bDirItem;
class K3bIso9660File;
class K3bSessionImportItem : public K3bDataItem
{
public:
K3bSessionImportItem( const K3bIso9660File*, K3bDataDoc* doc, K3bDirItem* );
K3bSessionImportItem( const K3bSessionImportItem& );
~K3bSessionImportItem();
K3bDataItem* copy() const;
K3bFileItem* replaceItem() const { return m_replaceItem; }
void setReplaceItem( K3bFileItem* item ) { m_replaceItem = item; }
bool isFile() const { return false; }
bool isFromOldSession() const { return true; }
bool isRemoveable() const { return false; }
bool isMoveable() const { return false; }
bool isRenameable() const { return false; }
bool isHideable() const { return false; }
bool writeToCd() const { return false; }
protected:
// the size of an item from an imported session does not depend
// on the value of followSymlinks
/**
* Normally one does not use this method but K3bDataItem::size()
*/
KIO::filesize_t itemSize( bool ) const { return m_size; }
private:
K3bFileItem* m_replaceItem;
KIO::filesize_t m_size;
};
#endif
|