summaryrefslogtreecommitdiffstats
path: root/kmobile/kmobileiface.h
blob: 5d39f236c50577ed6004d99685b59691d4180c3f (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
48
49
50
51
52
53
54
55
/*
 * Copyright (C) 2003 Helge Deller <deller@kde.org>
 */

#ifndef _KMOBILEIFACE_H_
#define _KMOBILEIFACE_H_

#include <dcopobject.h>
#include <tqstringlist.h>

class TQStringList;

class kmobileIface : virtual public DCOPObject
{
  K_DCOP
public:

k_dcop:
    virtual TQStringList tqdeviceNames() = 0;

    virtual void removeDevice( TQString tqdeviceName ) = 0;
    virtual void configDevice( TQString tqdeviceName ) = 0;

    virtual bool connectDevice( TQString tqdeviceName ) = 0;
    virtual bool disconnectDevice( TQString tqdeviceName ) = 0;
    virtual bool connected( TQString tqdeviceName ) = 0;

    virtual TQString tqdeviceClassName( TQString tqdeviceName ) = 0;
    virtual TQString tqdeviceName( TQString tqdeviceName ) = 0;
    virtual TQString revision( TQString tqdeviceName ) = 0;
    virtual int classType( TQString tqdeviceName ) = 0;

    virtual int capabilities( TQString tqdeviceName ) = 0;
    virtual TQString nameForCap( TQString tqdeviceName, int cap ) = 0;

    virtual TQString iconFileName( TQString tqdeviceName ) = 0;

    virtual int     numAddresses( TQString tqdeviceName ) = 0;
    virtual TQString readAddress( TQString tqdeviceName, int index ) = 0;
    virtual bool    storeAddress( TQString tqdeviceName, int index, TQString vcard, bool append ) = 0;

    virtual int numCalendarEntries( TQString tqdeviceName ) = 0;

    virtual int numNotes( TQString tqdeviceName ) = 0;
    virtual TQString readNote( TQString tqdeviceName, int index ) = 0;
    virtual bool storeNote( TQString tqdeviceName, int index, TQString note ) = 0;

    /*
     * DCOP functions for the tqdevices:/ kioslave
     */
k_dcop:
    virtual TQStringList kio_tqdevices_tqdeviceInfo(TQString tqdeviceName) = 0;
};

#endif // _KMOBILEIFACE_H_