[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 22:24:07
[Download RAW message or body]
On Sat, 21 Aug 1999, ian geiser wrote:
>
>
> --- Simon Hausmann <tronical@gmx.net> wrote:
> >
> > If you're using kde 1.1. you should have a look at
> > libkfm (in kdelibs) and
> > use the KFM class.
> >
> i am using 1.1.1 and the KFM class...
> i am using both libkfm and libkfile.
>
> > For HEAD branch you should use libkio's KIOJob class
> > (kio_job.h) .
> >
> i am assuming this is 2.0 only?
Yes
> --SNIP--
> am i understanding this correctly:
Ah, don't use that internal KFileDialog class... (why is it installed
btw?)
see kfm.h in kdelibs/kfmlib. the docu in there is easy to understand.
Bye,
Simon
> > > cout << "Loading File " << endl;
> > > QString rawData = "";
> > > QString url =
> > >
> > "ftp://weather.noaa.gov/data/observations/metar/stations/";
> > > url += stationId;
> > > url += ".TXT";
> > > ftpData = new KRemoteFile(url);
>
> creates a new KRemote file object
>
> > > kfmConn->copy(ftpData->url(),
>
> copies the remote url to the local filesystem
> using the name supplied by KRemote file...
>
> > ftpData->tempName());
> > > cout << "URL: " << ftpData->url() << endl;
>
> this will output the remote URL
> but currently only outputs a NULL
>
> > > cout << "Local File: " << ftpData->tempName()
>
> this should output the name of the local
> file but currently only outputs a NULL.
>
> am i totally off base or am i just not
> reading the correct DOCs?
>
> thanks
>
> -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