You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3b/src/rip/k3baudiocdview.h

108 lines
2.2 KiB

/*
*
* $Id: k3baudiocdview.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_AUDIOCD_VIEW_H_
#define _K3B_AUDIOCD_VIEW_H_
#include <k3bmediacontentsview.h>
#include <k3bmedium.h>
#include <k3btoc.h>
#include <k3bcddbresult.h>
#include <k3bcdtext.h>
class K3bListView;
class KListView;
class QListViewItem;
class QPoint;
class KActionCollection;
class KActionMenu;
class K3bCddb;
class QLabel;
class K3bToolBox;
class QDragObject;
namespace K3bDevice {
class Device;
}
class K3bAudioCdView : public K3bMediaContentsView
{
Q_OBJECT
public:
K3bAudioCdView( QWidget* parent = 0, const char * name = 0 );
~K3bAudioCdView();
KActionCollection* actionCollection() const { return m_actionCollection; }
/**
* internal
*/
QDragObject* dragObject();
public slots:
void queryCddb();
private slots:
void slotContextMenu( KListView*, QListViewItem*, const QPoint& );
void slotItemRenamed( QListViewItem*, const QString&, int );
void slotCddbQueryFinished( int );
void slotTrackSelectionChanged( QListViewItem* );
void slotSaveCddbLocally();
void slotEditTrackCddb();
void slotEditAlbumCddb();
void startRip();
void slotCheckAll();
void slotUncheckAll();
void slotSelect();
void slotDeselect();
private:
void reloadMedium();
void initActions();
void updateDisplay();
void enableInteraction( bool );
void showBusyLabel( bool );
K3bDevice::Toc m_toc;
K3bDevice::Device* m_device;
K3bCddbResultEntry m_cddbInfo;
KActionCollection* m_actionCollection;
KActionMenu* m_popupMenu;
K3bListView* m_trackView;
K3bToolBox* m_toolBox;
QLabel* m_labelLength;
class AudioTrackViewItem;
K3bCddb* m_cddb;
K3bDevice::CdText m_cdText;
QLabel* m_busyInfoLabel;
};
#endif