00001 /********************************************************************** 00002 ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 00003 ** 00004 ** This file is part of the Qtopia Environment. 00005 ** 00006 ** This file may be distributed and/or modified under the terms of the 00007 ** GNU General Public License version 2 as published by the Free Software 00008 ** Foundation and appearing in the file LICENSE.GPL included in the 00009 ** packaging of this file. 00010 ** 00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00013 ** 00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information. 00015 ** 00016 ** Contact info@trolltech.com if any conditions of this licensing are 00017 ** not clear to you. 00018 ** 00019 **********************************************************************/ 00020 #ifndef DOCUMENT_LIST_H 00021 #define DOCUMENT_LIST_H 00022 00023 00024 #include <qobject.h> 00025 #include <qtopia/applnk.h> 00026 00027 00028 class DocumentListPrivate; 00029 class ServerInterface; 00030 00031 class DocumentList : public QObject { 00032 Q_OBJECT 00033 public: 00034 DocumentList( ServerInterface *serverGui, bool scanDocs = TRUE, 00035 QObject *parent = 0, const char *name = 0 ); 00036 ~DocumentList(); 00037 00038 void linkChanged( QString link ); 00039 void restoreDone(); 00040 void storageChanged(); 00041 void sendAllDocLinks(); 00042 00043 void reloadAppLnks(); 00044 void reloadDocLnks(); 00045 void reforceDocuments(); 00046 void DiffAppLnks(); 00047 00048 // Orig DocList stuff 00049 void start(); 00050 void pause(); 00051 void resume(); 00052 void rescan(); 00053 00054 static AppLnkSet *appLnkSet; 00055 00056 /* 00057 void resend(); 00058 signals: 00059 void added( const DocLnk& doc ); 00060 void removed( const DocLnk& doc ); 00061 void changed( const DocLnk& oldDoc, const DocLnk& newDoc ); 00062 void allRemoved(); 00063 void doneForNow(); 00064 private slots: 00065 void resendWorker(); 00066 */ 00067 private slots: 00068 void startInitialScan(); 00069 protected: 00070 void timerEvent( QTimerEvent *te ); 00071 private: 00072 void add( const DocLnk& doc ); 00073 DocumentListPrivate *d; 00074 00075 }; 00076 00077 00078 #endif 00079
1.4.2