1
/* This file is part of the KDE project
2
Copyright (C) 2006 Kevin Ottens <ervin@kde.org>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License version 2 as published by the Free Software Foundation.
8
This library is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
Library General Public License for more details.
13
You should have received a copy of the GNU Library General Public License
14
along with this library; see the file COPYING.LIB. If not, write to
15
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16
Boston, MA 02110-1301, USA.
20
#ifndef SOLID_IFACES_OPTICALDISC_H
21
#define SOLID_IFACES_OPTICALDISC_H
23
#include <kdelibs_export.h>
25
#include <solid/ifaces/volume.h>
26
#include <solid/opticaldisc.h>
33
* This capability is available on optical discs.
35
* An optical disc is a volume that can be inserted in a cdrom drive.
37
class SOLIDIFACES_EXPORT OpticalDisc : virtual public Volume
41
* Destroys an OpticalDisc object.
43
virtual ~OpticalDisc();
47
* Retrieves the content types this disc contains (audio, video,
50
* @return the flag set indicating the available contents
52
virtual Solid::OpticalDisc::ContentTypes availableContent() const = 0;
55
* Retrieves the disc type (cdr, cdrw...).
57
* @return the disc type
59
virtual Solid::OpticalDisc::DiscType discType() const = 0;
62
* Indicates if it's possible to write additional data to the disc.
64
* @return true if the disc is appendable, false otherwise
66
virtual bool isAppendable() const = 0;
69
* Indicates if the disc is blank.
71
* @return true if the disc is blank, false otherwise
73
virtual bool isBlank() const = 0;
76
* Indicates if the disc is rewritable.
78
* A disc is rewritable if you can write on it several times.
80
* @return true if the disc is rewritable, false otherwise
82
virtual bool isRewritable() const = 0;
85
* Retrieves the disc capacity (that is the maximum size of a
86
* volume could have on this disc).
88
* @return the capacity of the disc in bytes
90
virtual qulonglong capacity() const = 0;
95
Q_DECLARE_INTERFACE( Solid::Ifaces::OpticalDisc, "org.kde.Solid.Ifaces.OpticalDisc/0.1" )