summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/btlistitem.cpp
blob: 82e7c00001f8c8ba829d19fbb6ae64d419b8fc05 (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
56
57
58
59
60
61

#include "btlistitem.h"

namespace OpieTooth {


    BTListItem::BTListItem( QListView * parent  ) : QListViewItem( parent ) {
    }

    BTListItem::BTListItem( QListViewItem * parent ) : QListViewItem( parent ) {
    }


    // name, and then mac and then servicetype
    BTListItem::BTListItem( QListView * parent,  const QString &name , const QString& mac, const QString& type   )
        : QListViewItem( parent, name ){

        m_name = name;
        m_mac = mac;
        m_type = type;

    }

    BTListItem::BTListItem( QListViewItem * parent , const QString& name, const QString& mac, const QString& type   )
        : QListViewItem( parent, name ){

        m_name = name;
        m_mac = mac;
        m_type = type;
    }


    void BTListItem::setMac( const QString& mac ) {
        m_mac = mac;
    }

    QString BTListItem::mac() const {
        return m_mac;
    }

    void BTListItem::setName( const QString& name ) {
        m_name = name;
    }

    QString BTListItem::name() const {
        return m_name;
    }

    void BTListItem::setType( const QString& type ) {
        m_type = type;
    }

    QString BTListItem::type() const {
        return m_type;
    }


    BTListItem::~BTListItem() {
    }

};