- Added PreferencesDialog with settings saving and reading.
[qtrapids] / src / engine / QTorrentHandle.cpp
index 2b87b78..1be0bf1 100644 (file)
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
+#include <QDebug>
+
 #include "QTorrentHandle.h"
 
 QTorrentHandle::QTorrentHandle(libtorrent::torrent_handle handle) : 
-               torrentHandle(handle)
+               torrentHandle_(handle)
 {
 }
 
@@ -29,4 +31,9 @@ QTorrentHandle::~QTorrentHandle()
 {
 }
 
+bool QTorrentHandle::isValid() const
+{
+       return torrentHandle_.is_valid();
+}
+