summaryview_plugin.h
1 /*
2  This file is part of KDE Kontact.
3 
4  Copyright (C) 2003 Sven L�ppken <sven@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef SUMMARYVIEW_PLUGIN_H
23 #define SUMMARYVIEW_PLUGIN_H
24 #include "plugin.h"
25 
26 #include <tdelocale.h>
27 #include <tdeparts/part.h>
28 
29 #include <tqmap.h>
30 
31 class TDESelectAction;
32 
33 class SummaryViewPart;
34 
35 class SummaryView : public Kontact::Plugin
36 {
37  TQ_OBJECT
38 
39 
40  public:
41  SummaryView( Kontact::Core *core, const char *name, const TQStringList& );
42  virtual ~SummaryView();
43 
44  int weight() const { return 100; }
45 
46  const TDEAboutData *aboutData();
47 
48  protected:
49  virtual KParts::ReadOnlyPart* createPart();
50 
51  private slots:
52 
53  void doSync();
54  void syncAccount( const TQString& account );
55  void fillSyncActionSubEntries();
56 
57  private:
58  TDEAboutData *mAboutData;
59  SummaryViewPart *mPart;
60  TDESelectAction *mSyncAction;
61 };
62 
63 #endif
This class provides the interface to the Kontact core for the plugins.
Definition: core.h:42
Base class for all Plugins in Kontact.
Definition: plugin.h:59
virtual const TDEAboutData * aboutData()
Reimplement this method if you want to add your credits to the Kontact about dialog.
Definition: plugin.cpp:129
virtual KParts::ReadOnlyPart * createPart()=0
Reimplement and return the part here.
virtual int weight() const
Return the weight of the plugin.
Definition: plugin.h:208