/* * Copyright (c) 2012 Yoann Blein * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #pragma once #include #include namespace Swift { class IncomingScreenSharing; class Image; class RemoteScreenViewerWidget : public QWidget { Q_OBJECT public: RemoteScreenViewerWidget(boost::shared_ptr incScreenSharing, QWidget *parent = 0); ~RemoteScreenViewerWidget(); protected: void paintEvent(QPaintEvent *); void resizeEvent(QResizeEvent *event); private: void handleNewImageReceived(const Image& image); private: boost::shared_ptr iss; QPixmap pixmap; }; }