#pragma once

#include <tqwidget.h>
#include <tqdatetime.h>

class OssModel;
class OssDevice;
class OssDeviceWidget;

class OssPopup : public TQWidget
{
    TQ_OBJECT
public:
    explicit OssPopup( OssModel *model, TQWidget *parent = 0 );

    void toggleAt( const TQPoint &trayPos, const TQSize &traySize );
    bool justHidden() const;

protected:
    void hideEvent( TQHideEvent *e );

private slots:
    void rebuild();

private:
    OssModel        *m_model;
    TQWidget         *m_container;
    OssDeviceWidget *m_widget;
    TQTime            m_hideTime;
};
