File: qsocketnotifier_c.cpp

package info (click to toggle)
libqtpas 2.6%2B2.0.8%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,860 kB
  • sloc: cpp: 56,595; pascal: 13,727; sh: 44; makefile: 18
file content (43 lines) | stat: -rw-r--r-- 1,314 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//******************************************************************************
//  Copyright (c) 2005-2013 by Jan Van hijfte
//
//  See the included file COPYING.TXT for details about the copyright.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//******************************************************************************


#include "qsocketnotifier_c.h"

QSocketNotifierH QSocketNotifier_Create(qintptr socket, QSocketNotifier::Type AnonParam2, QObjectH parent)
{
	return (QSocketNotifierH) new QSocketNotifier(socket, AnonParam2, (QObject*)parent);
}

void QSocketNotifier_Destroy(QSocketNotifierH handle)
{
	delete (QSocketNotifier *)handle;
}

qintptr QSocketNotifier_socket(QSocketNotifierH handle)
{
	return (qintptr) ((QSocketNotifier *)handle)->socket();
}

QSocketNotifier::Type QSocketNotifier_type(QSocketNotifierH handle)
{
	return (QSocketNotifier::Type) ((QSocketNotifier *)handle)->type();
}

bool QSocketNotifier_isEnabled(QSocketNotifierH handle)
{
	return (bool) ((QSocketNotifier *)handle)->isEnabled();
}

void QSocketNotifier_setEnabled(QSocketNotifierH handle, bool AnonParam1)
{
	((QSocketNotifier *)handle)->setEnabled(AnonParam1);
}