summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-02-23 14:35:52 (UTC)
committer harlekin <harlekin>2003-02-23 14:35:52 (UTC)
commit93d5fdc889cd724c1f2938497b6c6460a13be2ba (patch) (side-by-side diff)
tree3062d44ef92a47e81cebe07286691f0d2119edce
parent135c6fb1d73d322b43c8a487d40675278f3bf5f5 (diff)
downloadopie-93d5fdc889cd724c1f2938497b6c6460a13be2ba.zip
opie-93d5fdc889cd724c1f2938497b6c6460a13be2ba.tar.gz
opie-93d5fdc889cd724c1f2938497b6c6460a13be2ba.tar.bz2
got rid of not needed includes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/mail/mailplugin.cpp2
-rw-r--r--core/pim/today/plugins/mail/mailplugin.h4
-rw-r--r--core/pim/today/plugins/mail/mailpluginwidget.cpp10
-rw-r--r--core/pim/today/plugins/mail/mailpluginwidget.h7
4 files changed, 3 insertions, 20 deletions
diff --git a/core/pim/today/plugins/mail/mailplugin.cpp b/core/pim/today/plugins/mail/mailplugin.cpp
index 2a2efd2..9430c30 100644
--- a/core/pim/today/plugins/mail/mailplugin.cpp
+++ b/core/pim/today/plugins/mail/mailplugin.cpp
@@ -1,28 +1,28 @@
/*
* mailplugin.cpp
*
- * copyright : (c) 2002 by Maximilian Reiß
+ * copyright : (c) 2002,2003 by Maximilian Reiß
* email : harlekin@handhelds.org
*
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "mailplugin.h"
MailPlugin::MailPlugin() {
m_widget = 0l;
}
MailPlugin::~MailPlugin() {
delete (MailPluginWidget*)m_widget;
}
QString MailPlugin::pluginName() const {
diff --git a/core/pim/today/plugins/mail/mailplugin.h b/core/pim/today/plugins/mail/mailplugin.h
index a0f009b..295a88c 100644
--- a/core/pim/today/plugins/mail/mailplugin.h
+++ b/core/pim/today/plugins/mail/mailplugin.h
@@ -1,51 +1,47 @@
/*
* mailplugin.h
*
* copyright : (c) 2002 by Maximilian Reiß
* email : harlekin@handhelds.org
*
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef MAIL_PLUGIN_H
#define MAIL_PLUGIN_H
-#include <qstring.h>
#include <qwidget.h>
#include <qguardedptr.h>
-#include <opie/tododb.h>
-#include <opie/oclickablelabel.h>
-
#include <opie/todayplugininterface.h>
#include <opie/todayconfigwidget.h>
#include "mailpluginwidget.h"
class MailPlugin : public TodayPluginObject {
public:
MailPlugin();
~MailPlugin();
QString pluginName() const;
double versionNumber() const;
QString pixmapNameWidget() const;
QWidget* widget(QWidget *);
QString pixmapNameConfig() const;
TodayConfigWidget* configWidget(QWidget *);
QString appName() const;
bool excludeFromRefresh() const;
void refresh();
private:
QGuardedPtr<MailPluginWidget> m_widget;
};
diff --git a/core/pim/today/plugins/mail/mailpluginwidget.cpp b/core/pim/today/plugins/mail/mailpluginwidget.cpp
index aad1d07..3c1d908 100644
--- a/core/pim/today/plugins/mail/mailpluginwidget.cpp
+++ b/core/pim/today/plugins/mail/mailpluginwidget.cpp
@@ -1,49 +1,41 @@
/*
* mailpluginwidget.cpp
*
- * copyright : (c) 2002 by Maximilian Reiß
+ * copyright : (c) 2002,2003 by Maximilian Reiß
* email : harlekin@handhelds.org
*
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
-
-#include <qvaluelist.h>
-#include <qtl.h>
-#include <qstring.h>
-#include <qobject.h>
-#include <qlayout.h>
-
#include <qpe/config.h>
-#include <qpe/timestring.h>
#include <qpe/qcopenvelope_qws.h>
#include "mailpluginwidget.h"
MailPluginWidget::MailPluginWidget( QWidget *parent, const char* name)
: QWidget(parent, name ) {
m_mailLabel = 0l;
m_layout = 0l;
if ( m_mailLabel ) {
delete m_mailLabel;
}
m_mailLabel = new OClickableLabel( this );
m_mailLabel->setMaximumHeight( 15 );
connect( m_mailLabel, SIGNAL( clicked() ), this, SLOT( startMail() ) );
if ( m_layout ) {
delete m_layout;
}
m_layout = new QHBoxLayout( this );
m_layout->setAutoAdd( true );
readConfig();
diff --git a/core/pim/today/plugins/mail/mailpluginwidget.h b/core/pim/today/plugins/mail/mailpluginwidget.h
index c678833..a3b1388 100644
--- a/core/pim/today/plugins/mail/mailpluginwidget.h
+++ b/core/pim/today/plugins/mail/mailpluginwidget.h
@@ -1,49 +1,44 @@
/*
* mailpluginwidget.h
*
- * copyright : (c) 2002 by Maximilian Reiß
+ * copyright : (c) 2002,2003 by Maximilian Reiß
* email : harlekin@handhelds.org
*
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
-
#ifndef MAIL_PLUGIN_WIDGET_H
#define MAIL_PLUGIN_WIDGET_H
-#include <qstring.h>
-#include <qwidget.h>
#include <qlayout.h>
-#include <opie/tododb.h>
#include <opie/oclickablelabel.h>
class MailPluginWidget : public QWidget {
Q_OBJECT
-
public:
MailPluginWidget( QWidget *parent, const char *name );
~MailPluginWidget();
void refresh();
protected slots:
void startMail();
private:
OClickableLabel* m_mailLabel;
QHBoxLayout* m_layout;
void readConfig();
void getInfo();
};
#endif