summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/meanwhile/meanwhileplugin.h
blob: 159591244d00d7adf786d3e5dbac7d2cf3652c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
    meanwhileplugin.h - provide helpers for meanwhile from an external plugin

    Copyright (c) 2003-2004 by Sivaram Gottimukkala  <[email protected]>

    Kopete    (c) 2002-2004 by the Kopete developers <[email protected]>

    *************************************************************************
    *                                                                       *
    * 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 __MEANWHILE_PLUGIN_H__
#define __MEANWHILE_PLUGIN_H__

#include "tqstring.h"
#include <tdeaction.h>

class TQLineEdit;

class MeanwhilePlugin
{
public:
    /* do something when the find button on add contact is hit
     *  - like do lookups in company databases
     *   when done fill 'fillThis' with the id of the contact
     */
    virtual void getMeanwhileId(TQWidget *parent,TQLineEdit *fillThis);
    /* can this plugin provide the above functionality */
    virtual bool canProvideMeanwhileId();

    /* show user info has been selected - the meanwhile server doesnt
     *  seem to have any info...maybe you can find it somewhere else
     */
    virtual void showUserInfo(const TQString &userid);

    /* if you want to provide more functions on the rightclick dropdown
     *   menu...implement this
     */
    virtual void addCustomMenus(TDEActionMenu *menu);
};

#endif