25 #include <tqvaluelist.h>
26 #include <tqptrlist.h>
28 #include <sys/types.h>
32 class KArchiveDirectory;
59 explicit ImportJob( TQWidget *parentWidget = 0 );
62 void setFile( const KURL &archiveFile );
63 void setRootFolder( KMFolder *rootFolder );
67 void importNextMessage();
69 void messagePutResult( KMail::FolderJob *job );
76 const KArchiveDirectory *archiveDir;
82 TQPtrList<KArchiveFile> files;
86 void abort( const TQString &errorMessage );
88 void importNextDirectory();
89 KMFolder* createSubFolder( KMFolder *parent, const TQString &folderName, mode_t permissions );
90 KMFolder* getOrCreateSubFolder( KMFolder *parentFolder, const TQString &subFolderName,
91 mode_t subFolderPermissions );
92 void enqueueMessages( const KArchiveDirectory *dir, KMFolder *folder );
101 TQWidget *mParentWidget;
103 int mNumberOfImportedMessages;
107 TQValueList<Folder> mQueuedDirectories;
110 TQValueList<Messages> mQueuedMessages;
119 KArchiveFile *mCurrentMessageFile;
121 KPIM::ProgressItem *mProgressItem;
Imports an archive that was previously backed up with an BackupJob.
|