[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Problem with remote file access...
From:       Simon Hausmann <tronical () gmx ! net>
Date:       1999-08-21 21:55:48
[Download RAW message or body]


If you're using kde 1.1. you should have a look at libkfm (in kdelibs) and
use the KFM class.

For HEAD branch you should use libkio's KIOJob class (kio_job.h) .

Greetings,
 Simon

On Sat, 21 Aug 1999, ian geiser wrote:

> Greetings,
> I am writing an app that needs access to some text data
> that is kept on an FTP server.
> 
> I am trying to figure out why this following code returns NULL every
> time:
> 
> 
> 	cout << "Loading File " << endl;
> 	QString rawData = "";
> 	QString url =
> "ftp://weather.noaa.gov/data/observations/metar/stations/";
> 	url += stationId;
> 	url += ".TXT";
>   ftpData = new KRemoteFile(url);
> 	kfmConn->copy(ftpData->url(), ftpData->tempName());
>   cout << "URL: " << ftpData->url() << endl;
> 	cout << "Local File: " << ftpData->tempName() << endl;
> 
> This code snippit will always return both a NULL for the URL and the
> local file...
> 
> Is there a better way to do this?
> 
> thanks in advance.
> 
> 	-ian reinhart geiser
> 
> ===
> Ian Reinhart Geiser
> http://www.msoe.edu/~geiseri
> __________________________________________________
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com
> 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic