BridgeDevice.h 568 Bytes
Newer Older
1 2
#pragma once

3
#include "Bridge/IAdapter.h"
Brendan Long's avatar
Brendan Long committed
4
#include <alljoyn/BusAttachment.h>
5

gladish's avatar
gladish committed
6
namespace bridge
7 8 9 10
{
  class BridgeDevice
  {
  public:
Brendan Long's avatar
Brendan Long committed
11 12 13
    BridgeDevice(const shared_ptr<IAdapterDevice>&, const shared_ptr<IAdapter>&);
    virtual ~BridgeDevice();

14
    QStatus Shutdown();
Brendan Long's avatar
Brendan Long committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
    QStatus Initialize();

    ajn::BusAttachment& GetBusAttachment()
    {
      return m_busAttachment;
    }

    shared_ptr<IAdapterDevice> GetAdapterDevice()
    {
      return m_parent;
    }

  private:
    shared_ptr<IAdapterDevice> m_parent;
    ajn::BusAttachment m_busAttachment;
30 31 32
  };
}