kitchensync Library API Documentation

agenda/socket.cpp

00001 #include <klocale.h>
00002 
00003 #include "socket.h"
00004 
00005 using namespace KSync;
00006 
00007 
00008 AgendaSocket::AgendaSocket( QObject* obj )
00009     : QObject(obj, "AgendaSocket") {
00010     m_isConnected = false;
00011 }
00012 AgendaSocket::~AgendaSocket() {
00013 }
00014 void AgendaSocket::setIP(const QString& ip ) {
00015     m_ip = ip;
00016 }
00017 void AgendaSocket::setMetaName( const QString& name ) {
00018     m_meta = name;
00019 }
00020 QString AgendaSocket::metaName()const {
00021     return m_meta;
00022 }
00023 /* try to connect */
00024 void AgendaSocket::startUP() {
00025     emit prog( StdProgress::connection() );
00026     emit prog( StdProgress::authenticated() );
00027     emit prog( StdProgress::connected() ); // finally connected
00028 }
00029 void AgendaSocket::hangUP() {
00030     emit prog( Progress(i18n("Disconnected from the device.") ) );
00031     m_isConnected = false;
00032 }
00033 bool AgendaSocket::isConnected()const {
00034     return m_isConnected;
00035 }
00036 void AgendaSocket::startSync() {
00037     emit prog( Progress( i18n("Starting to sync now") ) );
00038 
00039     /*
00040      * download and convert
00041      *
00042      * DO Collect MetaInformations
00043      */
00044 
00045     SynceeList lst;
00046     emit sync(lst);
00047 }
00048 void AgendaSocket::write( SynceeList lst) {
00049     // reconvert and write back!!!
00050 
00057     emit prog(StdProgress::done() );
00058 }
00059 
00060 #include "socket.moc"
KDE Logo
This file is part of the documentation for kitchensync Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 4 14:41:09 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003