~ubuntu-branches/ubuntu/oneiric/libktorrent/oneiric

« back to all changes in this revision

Viewing changes to src/util/functions.h

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2011-05-26 00:33:38 UTC
  • mfrom: (5.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110526003338-2r4zwyzn8bovsxay
Tags: 1.1.1-2
Release to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        /// Get the IP address of the network interface
80
80
        KTORRENT_EXPORT QString NetworkInterfaceIPAddress(const QString & iface);
81
81
        
 
82
        /// Get all the IP addresses of the network interface
 
83
        KTORRENT_EXPORT QStringList NetworkInterfaceIPAddresses(const QString & iface);
 
84
        
82
85
        const double TO_KB = 1024.0;
83
86
        const double TO_MEG = (1024.0 * 1024.0);
84
87
        const double TO_GIG = (1024.0 * 1024.0 * 1024.0);
116
119
                        *guard = false;
117
120
                }
118
121
        };
119
 
 
120
 
#ifdef Q_WS_WIN
121
 
        KTORRENT_EXPORT bool InitWindowsSocketsAPI();
122
 
#endif
 
122
        
 
123
        /**
 
124
                Global initialization function, should be called, in the applications main function.
 
125
         */
 
126
        KTORRENT_EXPORT bool InitLibKTorrent();
123
127
}
124
128
 
125
129
#endif