kandy Library API Documentation

kandy.h

00001 /*
00002     This file is part of Kandy.
00003 
00004     Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019 
00020     As a special exception, permission is given to link this program
00021     with any edition of Qt, and distribute the resulting executable,
00022     without including the source code for Qt in the source distribution.
00023 */
00024 #ifndef KANDY_H
00025 #define KANDY_H
00026 
00027 #ifdef HAVE_CONFIG_H
00028 #include <config.h>
00029 #endif 
00030 
00031 #include <kapplication.h>
00032 #include <kmainwindow.h>
00033  
00034 #include "kandyview.h"
00035 
00036 class QPrinter;
00037 
00038 class KandyPrefsDialog;
00039 
00048 class Kandy : public KMainWindow
00049 {
00050     Q_OBJECT
00051   public:
00055     Kandy(CommandScheduler *);
00056 
00060     virtual ~Kandy();
00061 
00065     void load(const QString& url);
00066     void save(const QString& url);
00067 
00068   public slots:
00069     void setTitle();
00070 
00071     void modemConnect();
00072 
00073     void showErrorMessage( const QString & );
00074 
00075   signals:
00076     void showMobileWin();
00077     void connectStateChanged(bool);
00078 
00079   protected:
00083     virtual void dragEnterEvent(QDragEnterEvent *event);
00084     virtual void dropEvent(QDropEvent *event);
00085     
00086     bool queryClose();
00087 
00088   protected:
00093     void saveProperties(KConfig *);
00094 
00100     void readProperties(KConfig *);
00101 
00102 
00103   private slots:
00104     void fileOpen();
00105     void fileSave();
00106     void fileSaveAs();
00107     void filePrint();
00108     void optionsConfigureKeys();
00109     void optionsConfigureToolbars();
00110     void optionsPreferences();
00111     void modemDisconnect();
00112     void showMobileGui();
00113     void newToolbarConfig();
00114 
00115     void changeStatusbar(const QString& text);
00116     void changeCaption(const QString& text);
00117 
00118 
00119   private:
00120     void setupAccel();
00121     void setupActions();
00122 
00123   private:
00124     CommandScheduler *mScheduler;
00125   
00126     KandyView *mView;
00127 
00128     QPrinter   *mPrinter;
00129 
00130     KAction *mConnectAction;
00131     KAction *mDisconnectAction;
00132     
00133     QString mFilename;
00134 
00135     KandyPrefsDialog *mPreferencesDialog;
00136 };
00137 
00138 #endif // KANDY_H
KDE Logo
This file is part of the documentation for kandy Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:37:59 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003