summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/olocallister.cpp
authorzecke <zecke>2002-10-28 21:47:58 (UTC)
committer zecke <zecke>2002-10-28 21:47:58 (UTC)
commit98d46aa752026d53b4cf4ea8572fdf7c89f4c6c0 (patch) (side-by-side diff)
tree3e4a873011de405e5402d7eb53ae1c5c2867246a /libopie/ofileselector/olocallister.cpp
parentb963230163fc8069731374a19390fd0e5cb42532 (diff)
downloadopie-98d46aa752026d53b4cf4ea8572fdf7c89f4c6c0.zip
opie-98d46aa752026d53b4cf4ea8572fdf7c89f4c6c0.tar.gz
opie-98d46aa752026d53b4cf4ea8572fdf7c89f4c6c0.tar.bz2
Almost done with the new data flow
only OFileSelector needs to adapt it now... Besides that make it compile with the new api Add a configure and a libopie.pro to actually build ofileselector and a MANIFEST to explain some basics of the now a days a bit bigger interface
Diffstat (limited to 'libopie/ofileselector/olocallister.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie/ofileselector/olocallister.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/libopie/ofileselector/olocallister.cpp b/libopie/ofileselector/olocallister.cpp
index 2306b14..5d7884d 100644
--- a/libopie/ofileselector/olocallister.cpp
+++ b/libopie/ofileselector/olocallister.cpp
@@ -78,13 +78,13 @@ void OLocalLister::reparse( const QString& path ) {
for( int i = 0; i<=4; i++) {
QFileInfo info( file );
if( !info.exists() ){
- addSymlink( currentMimeType, fi, TRUE );
+ addSymlink( currentMimeType, fi, QString::null, TRUE );
break;
}else if( info.isDir() ){
if (!showDirs() )
break;
- addDir( currentMimeType, fi,
+ addDir( currentMimeType, fi, QString::null,
TRUE );
break;
}else if( info.isFile() ){
@@ -95,7 +95,7 @@ void OLocalLister::reparse( const QString& path ) {
/* check if we comply to the mimetype */
MimeType type( info.absFilePath() );
if (compliesMime( type.id() ) )
- addFile( currentMimeType, fi, TRUE );
+ addFile( currentMimeType, fi, QString::null, TRUE );
break;
}else if( info.isSymLink() ){
@@ -116,4 +116,10 @@ void OLocalLister::reparse( const QString& path ) {
++it;
} // of while loop
}
-
+/* more accepting it code */
+void OLocalLister::fileSelected( const QString& dir, const QString& file, const QString& ) {
+ internFileSelected( dir + "/" + file );
+}
+void OLocalLister::changedDir( const QString& dir, const QString& file, const QString& ) {
+ internChangedDir( dir + "/" + file );
+}