Diffstat (limited to 'libopie/todayplugininterface.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/todayplugininterface.h | 42 |
1 files changed, 33 insertions, 9 deletions
diff --git a/libopie/todayplugininterface.h b/libopie/todayplugininterface.h index 532f492..5dfeaa8 100644 --- a/libopie/todayplugininterface.h +++ b/libopie/todayplugininterface.h | |||
@@ -1,6 +1,36 @@ | |||
1 | /* | ||
2 | � � � � � � � � This file is part of the Opie Project | ||
3 | Copyright (c) 2002 Maximilian Reiss <max.reiss@gmx.de> | ||
4 | =. | ||
5 | .=l. | ||
6 | � � � � � �.>+-= | ||
7 | �_;:, � � .> � �:=|. This program is free software; you can | ||
8 | .> <`_, � > �. � <= redistribute it and/or modify it under | ||
9 | :`=1 )Y*s>-.-- � : the terms of the GNU General Public | ||
10 | .="- .-=="i, � � .._ License as published by the Free Software | ||
11 | �- . � .-<_> � � .<> Foundation; either version 2 of the License, | ||
12 | � � �._= =} � � � : or (at your option) any later version. | ||
13 | � � .%`+i> � � � _;_. | ||
14 | � � .i_,=:_. � � �-<s. This program is distributed in the hope that | ||
15 | � � �+ �. �-:. � � � = it will be useful, but WITHOUT ANY WARRANTY; | ||
16 | � � : .. � �.:, � � . . . without even the implied warranty of | ||
17 | � � =_ � � � �+ � � =;=|` MERCHANTABILITY or FITNESS FOR A | ||
18 | � _.=:. � � � : � �:=>`: PARTICULAR PURPOSE. See the GNU | ||
19 | ..}^=.= � � � = � � � ; Library General Public License for more | ||
20 | ++= � -. � � .` � � .: details. | ||
21 | �: � � = �...= . :.=- | ||
22 | �-. � .:....=;==+<; You should have received a copy of the GNU | ||
23 | � -_. . . � )=. �= Library General Public License along with | ||
24 | � � -- � � � �:-=` this library; see the file COPYING.LIB. | ||
25 | If not, write to the Free Software Foundation, | ||
26 | Inc., 59 Temple Place - Suite 330, | ||
27 | Boston, MA 02111-1307, USA. | ||
28 | |||
29 | */ | ||
30 | |||
1 | 31 | ||
2 | #ifndef TODAY_PLUGIN_INTERFACE | 32 | #ifndef TODAY_PLUGIN_INTERFACE |
3 | #define TODAY_PLUGIN_INTERFACE | 33 | #define TODAY_PLUGIN_INTERFACE |
4 | 34 | ||
5 | #include <qpe/qcom.h> | 35 | #include <qpe/qcom.h> |
6 | #include "todayconfigwidget.h" | 36 | #include "todayconfigwidget.h" |
@@ -77,26 +107,20 @@ public: | |||
77 | * If the plugin should take part in the periodic refresh | 107 | * If the plugin should take part in the periodic refresh |
78 | */ | 108 | */ |
79 | virtual bool excludeFromRefresh() const = 0; | 109 | virtual bool excludeFromRefresh() const = 0; |
80 | 110 | ||
81 | /** | 111 | /** |
82 | * Refresh that plugins view. For updating the plugins | 112 | * Refresh that plugins view. For updating the plugins |
83 | * | ||
84 | */ | 113 | */ |
85 | virtual void refresh() {}; | 114 | virtual void refresh() {}; |
86 | 115 | ||
87 | /** | 116 | /** |
88 | * minimum height the plugin at least should have | 117 | * reread the plugins config and act apropiate |
118 | * This is for example used when returning from the config dialog | ||
89 | */ | 119 | */ |
90 | // virtual int minHeight() const = 0; | 120 | virtual void reinitialize() {}; |
91 | |||
92 | /** | ||
93 | * maximum height that should be used before starting scrolling | ||
94 | */ | ||
95 | // virtual int maxHeight() const = 0; | ||
96 | |||
97 | }; | 121 | }; |
98 | 122 | ||
99 | /** | 123 | /** |
100 | * This is part of the QCOM works. See example plugins how to do it right | 124 | * This is part of the QCOM works. See example plugins how to do it right |
101 | */ | 125 | */ |
102 | struct TodayPluginInterface : public QUnknownInterface { | 126 | struct TodayPluginInterface : public QUnknownInterface { |