summaryrefslogtreecommitdiffstats
path: root/k9devices/k9cddrive.h
blob: a56584f40158b51e26fa1f872d6788aa4d3b1654 (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
64
65
66
67
68
//
// C++ Interface: k9cddrive
//
// Description: 
//
//
// Author: Jean-Michel PETIT <[email protected]>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef K9CDDRIVE_H
#define K9CDDRIVE_H
#include "k9common.h"

#include <tqobject.h>

#include <tqstring.h>
#include <tqstringlist.h>
#include <tqvaluelist.h>
#include <k3bdevice.h>
#include <k3bdevicemanager.h>


/**
  *@author 
  */
class k9CdDrive : public TQObject {
    TQ_OBJECT
  
public:
    k9CdDrive();
    ~k9CdDrive();
    int num;
    TQString name;
    TQString device;
    bool canWriteCDR;
    bool canReadDVD;
    bool canWriteDVD;

    void setWriteSpeeds(const TQValueList< int >& _value);
    TQValueList< int > getWriteSpeeds() const;

private:
   TQValueList <int> writeSpeeds;
};

class k9CdDrives : public TQObject  {
    TQ_OBJECT
  
public:
    k9CdDrives();
    ~k9CdDrives();
    /** No descriptions */
    int count();
    /** No descriptions */
    k9CdDrive * getDrive(int num);
    void eject(const TQString & device);
    void scanDrives();
signals:
    void deviceAdded(k9CdDrive *drive);
    void deviceRemoved(k9CdDrive *drive);
private: // Private methods
    K3bDevice::DeviceManager *m_devMgr;
    void readConfig();
    TQPtrList <k9CdDrive> drives;
};
#endif