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/kioslaves/videodvd/videodvd.h

56 lines
1.3 KiB

/*
*
* $Id: sourceheader 380067 2005-01-19 13:03:46Z trueg $
* Copyright (C) 2005 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 _videodvd_H_
#define _videodvd_H_
#include <qstring.h>
#include <qcstring.h>
#include <kurl.h>
#include <kio/global.h>
#include <kio/slavebase.h>
class QCString;
class K3bIso9660Entry;
class K3bIso9660;
namespace K3bDevice
{
class DeviceManager;
}
class kio_videodvdProtocol : public KIO::SlaveBase
{
public:
kio_videodvdProtocol(const QCString &pool_socket, const QCString &app_socket);
~kio_videodvdProtocol();
void mimetype( const KURL& url );
void stat( const KURL& url );
void get( const KURL& url );
void listDir( const KURL& url );
private:
K3bIso9660* openIso( const KURL&, QString& plainIsoPath );
KIO::UDSEntry createUDSEntry( const K3bIso9660Entry* e ) const;
void listVideoDVDs();
static K3bDevice::DeviceManager* s_deviceManager;
static int s_instanceCnt;
};
#endif