summaryrefslogtreecommitdiff
path: root/noncore/apps/advancedfm/advancedfm.h
authorllornkcor <llornkcor>2003-03-23 14:39:42 (UTC)
committer llornkcor <llornkcor>2003-03-23 14:39:42 (UTC)
commit376aa038c75b3fbccdcb2e81d5b2ac3de787a447 (patch) (side-by-side diff)
treedfbcd8cfd1a6c37eb5d3b0f8f003a0c41154fd59 /noncore/apps/advancedfm/advancedfm.h
parent47d6402958e3d95a49a116552979407b4b731670 (diff)
downloadopie-376aa038c75b3fbccdcb2e81d5b2ac3de787a447.zip
opie-376aa038c75b3fbccdcb2e81d5b2ac3de787a447.tar.gz
opie-376aa038c75b3fbccdcb2e81d5b2ac3de787a447.tar.bz2
add stderr messagebox to oprocess
Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.h198
1 files changed, 100 insertions, 98 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h
index 3250a66..f31956c 100644
--- a/noncore/apps/advancedfm/advancedfm.h
+++ b/noncore/apps/advancedfm/advancedfm.h
@@ -15,6 +15,7 @@
#define QT_QWS_OPIE
//#include <opie/otabwidget.h>
+#include <opie/oprocess.h>
#include <qpe/ir.h>
#include <qvariant.h>
@@ -52,119 +53,120 @@ class Ir;
class AdvancedFm : public QMainWindow
{
- Q_OBJECT
+ Q_OBJECT
public:
- AdvancedFm();
- ~AdvancedFm();
+ AdvancedFm();
+ ~AdvancedFm();
protected slots:
- void selectAll();
- void addToDocs();
- void doDirChange();
- void mkDir();
- void del();
- void rn();
- void populateView();
- void rePopulate();
- void showHidden();
- void showMenuHidden();
- void writeConfig();
- void readConfig();
- void ListClicked(QListViewItem *);
- void ListPressed( int, QListViewItem *, const QPoint&, int);
- void makeDir();
- void doDelete();
- void tabChanged(QWidget*);
- void cleanUp();
- void renameIt();
- void runThis();
- void runText();
- void filePerms();
- void doProperties();
- void runCommand();
- void runCommandStd();
- QStringList getPath();
- void mkSym();
- void switchToLocalTab();
- void switchToRemoteTab();
+ void selectAll();
+ void addToDocs();
+ void doDirChange();
+ void mkDir();
+ void del();
+ void rn();
+ void populateView();
+ void rePopulate();
+ void showHidden();
+ void showMenuHidden();
+ void writeConfig();
+ void readConfig();
+ void ListClicked(QListViewItem *);
+ void ListPressed( int, QListViewItem *, const QPoint&, int);
+ void makeDir();
+ void doDelete();
+ void tabChanged(QWidget*);
+ void cleanUp();
+ void renameIt();
+ void runThis();
+ void runText();
+ void filePerms();
+ void doProperties();
+ void runCommand();
+ void runCommandStd();
+ QStringList getPath();
+ void mkSym();
+ void switchToLocalTab();
+ void switchToRemoteTab();
protected:
- OTabWidget *TabWidget;
- int whichTab;
+ OTabWidget *TabWidget;
+ int whichTab;
// QTabWidget *TabWidget;
- QWidget *tab, *tab_2, *tab_3;
- QListView *Local_View, *Remote_View;
+ QWidget *tab, *tab_2, *tab_3;
+ QListView *Local_View, *Remote_View;
- QLineEdit *currentPathEdit;
- QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/;
- QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton;
+ QLineEdit *currentPathEdit;
+ QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/;
+ QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton;
// QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton;
- QDir currentDir, currentRemoteDir;
- QComboBox *currentPathCombo;
- QString filterStr, s_addBookmark, s_removeBookmark;
- QListViewItem * item;
- bool b;
- QStringList fileSystemTypeList, fsList;
- int currentServerConfig;
- bool zaurusDevice;
- QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3;
- QStringList remoteDirPathStringList, localDirPathStringList;
- QLineEdit *renameBox;
+ QDir currentDir, currentRemoteDir;
+ QComboBox *currentPathCombo;
+ QString filterStr, s_addBookmark, s_removeBookmark;
+ QListViewItem * item;
+ bool b;
+ QStringList fileSystemTypeList, fsList;
+ int currentServerConfig;
+ bool zaurusDevice;
+ QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3;
+ QStringList remoteDirPathStringList, localDirPathStringList;
+ QLineEdit *renameBox;
- void init();
- void initConnections();
- void keyReleaseEvent( QKeyEvent *);
- void keyPressEvent( QKeyEvent *);
- QString getFileSystemType(const QString &);
- QString getDiskSpace(const QString &);
- void parsetab(const QString &fileName);
- QString checkDiskSpace(const QString &);
- QString dealWithSymName(const QString &);
- QDir *CurrentDir();
- QDir *OtherDir();
- QListView *CurrentView();
- QListView *OtherView();
- void setOtherTabCurrent();
+ void init();
+ void initConnections();
+ void keyReleaseEvent( QKeyEvent *);
+ void keyPressEvent( QKeyEvent *);
+ QString getFileSystemType(const QString &);
+ QString getDiskSpace(const QString &);
+ void parsetab(const QString &fileName);
+ QString checkDiskSpace(const QString &);
+ QString dealWithSymName(const QString &);
+ QDir *CurrentDir();
+ QDir *OtherDir();
+ QListView *CurrentView();
+ QListView *OtherView();
+ void setOtherTabCurrent();
protected slots:
- void dirMenuSelected(int);
- void showFileMenu();
- void cancelMenuTimer();
- void homeButtonPushed();
- void docButtonPushed();
- void SDButtonPushed();
- void CFButtonPushed();
- void QPEButtonPushed();
- void upDir();
- void currentPathComboChanged();
- void copy();
- void copyAs();
- void copySameDir();
- void currentPathComboActivated(const QString &);
- void fillCombo(const QString &);
- bool copyFile( const QString & , const QString & );
- void move();
- void fileStatus();
- void doAbout();
- void doBeam();
- void fileBeamFinished( Ir *);
+ void dirMenuSelected(int);
+ void showFileMenu();
+ void cancelMenuTimer();
+ void homeButtonPushed();
+ void docButtonPushed();
+ void SDButtonPushed();
+ void CFButtonPushed();
+ void QPEButtonPushed();
+ void upDir();
+ void currentPathComboChanged();
+ void copy();
+ void copyAs();
+ void copySameDir();
+ void currentPathComboActivated(const QString &);
+ void fillCombo(const QString &);
+ bool copyFile( const QString & , const QString & );
+ void move();
+ void fileStatus();
+ void doAbout();
+ void doBeam();
+ void fileBeamFinished( Ir *);
private:
- MenuButton *menuButton;
- QString oldName;
- QTimer menuTimer;
- void startProcess(const QString &);
- bool eventFilter( QObject * , QEvent * );
- void cancelRename();
- void doRename(QListView *);
- void okRename();
- void customDirsToMenu();
- void addCustomDir();
- void removeCustomDir();
+ MenuButton *menuButton;
+ QString oldName;
+ QTimer menuTimer;
+ void startProcess(const QString &);
+ bool eventFilter( QObject * , QEvent * );
+ void cancelRename();
+ void doRename(QListView *);
+ void okRename();
+ void customDirsToMenu();
+ void addCustomDir();
+ void removeCustomDir();
private slots:
- void processEnded();
- void gotoCustomDir(const QString &);
+ void processEnded(OProcess *);
+ void oprocessStderr(OProcess *, char *, int);
+ void gotoCustomDir(const QString &);
};
#endif // ADVANCEDFM_H