Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > d38b97c69a3fd47b351add70f89a7ab5 > files > 671

perl-qt4-examples-4.14.3-1.mga5.noarch.rpm

#!/usr/bin/perl

use strict;
use warnings;
use QtCore4;
use QtGui4;
use QtNetwork4;
use SecureSocketClientResources;
use SslClient;

sub main
{
    my $app = Qt::Application(\@ARGV);

    if (!Qt::SslSocket::supportsSsl()) {
        Qt::MessageBox::information(0, 'Secure Socket Client',
                'This system does not support OpenSSL.');
        return -1;
    }

    my $client = SslClient();
    $client->show();

    return $app->exec();
}

exit main();