[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/libarchive-based-ark/ark/kerfuffle
From: Henrique Pinto <tawhaki () gmail ! com>
Date: 2007-07-20 18:57:58
Message-ID: 1184957878.804547.8964.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 690342 by henrique:
* Beginning of a ReadWriteArchiveInterface
M +9 -0 archiveinterface.cpp
M +10 -3 archiveinterface.h
--- branches/work/libarchive-based-ark/ark/kerfuffle/archiveinterface.cpp \
#690341:690342 @@ -70,6 +70,15 @@
{
m_observers.removeAll( observer );
}
+
+ ReadWriteArchiveInterface::ReadWriteArchiveInterface( const QString & filename, \
QObject *parent ) + : ReadOnlyArchiveInterface( filename, parent )
+ {
+ }
+
+ ReadWriteArchiveInterface::~ReadWriteArchiveInterface()
+ {
+ }
} // namespace Kerfuffle
#include "archiveinterface.moc"
--- branches/work/libarchive-based-ark/ark/kerfuffle/archiveinterface.h \
#690341:690342 @@ -63,12 +63,19 @@
QList<ArchiveObserver*> m_observers;
QString m_filename;
};
- /*
- class ReadWriteArchiveInterface: public ReadOnlyArchiveInterface
+
+ class KERFUFFLE_EXPORT ReadWriteArchiveInterface: public ReadOnlyArchiveInterface
{
Q_OBJECT
+ public:
+ ReadWriteArchiveInterface( const QString & filename, QObject *parent = 0 );
+ virtual ~ReadWriteArchiveInterface();
+
+ virtual bool isReadOnly() const { return false; } // TODO: Bogus, should check if \
we also can actually write to the file +
+ virtual bool addFiles( const QList<KUrl> & files ) = 0;
+ virtual bool deleteFiles( const QList<QVariant> & files ) = 0;
};
- */
} // namespace Kerfuffle
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic