/* This file is part of the KDE project
 * Copyright (C) 2001, 2002 Rolf Magnus <ramagnus@kde.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 version 2.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 *  $Id: kfile_pdf.h 144528 2002-03-22 20:15:30Z aseigo $
 */

#ifndef __KFILE_PDF_H__
#define __KFILE_PDF_H__

#include <kfilemetainfo.h>

class QStringList;
class KProcess;

class KPdfPlugin: public KFilePlugin
{
    Q_OBJECT
public:
    KPdfPlugin( QObject *parent, const char *name, const QStringList& preferredItems );

    virtual bool readInfo(KFileMetaInfo& info, uint what);

private slots:
    void slotReceivedStdout(KProcess* p, char* buffer, int buflen);

private:
    QDateTime pdfDate(const QString& s) const;
    KFileMetaInfo mInfo;
};

#endif
