1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-28 08:10:47 +02:00

Move rtaudio, alsa-playback and qxt into thirdparty/.

This commit is contained in:
Dominik Schmidt
2011-02-21 13:10:30 +01:00
parent 10bf9f505c
commit 8fb19bf84d
155 changed files with 25 additions and 22 deletions

View File

@@ -0,0 +1,39 @@
#ifndef LIBPORTFWD_PORTFWD_H
#define LIBPORTFWD_PORTFWD_H true
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cstdio>
#include <iostream>
//fwd:
struct UPNPUrls;
struct IGDdatas;
class Portfwd
{
public:
Portfwd();
~Portfwd();
/// timeout: milliseconds to wait for a router to respond
/// 2000 is typically enough.
bool init(unsigned int timeout);
void get_status();
bool add(unsigned short port, unsigned short internal_port );
bool remove(unsigned short port);
const std::string& external_ip() const
{ return m_externalip; }
const std::string& lan_ip() const
{ return m_lanip; }
unsigned int max_upstream_bps() const { return m_upbps; }
unsigned int max_downstream_bps() const { return m_downbps; }
protected:
struct UPNPUrls* urls;
struct IGDdatas* data;
std::string m_lanip, m_externalip;
unsigned int m_upbps, m_downbps;
};
#endif