kitchensync Library API Documentation

stdprogress.cpp

00001 /*
00002     This file is part of KitchenSync.
00003 
00004     Copyright (c) 2002 Holger Freyther <zecke@handhelds.org>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019     Boston, MA 02111-1307, USA.
00020 */
00021 #include <klocale.h>
00022 
00023 #include "stdprogress.h"
00024 
00025 using namespace KSync;
00026 
00027 Progress StdProgress::connection() {
00028     return Progress( Progress::Connection, i18n("A connection was opened.") );
00029 }
00030 Progress StdProgress::connected() {
00031     return Progress( Progress::Connected, i18n("A connection was established.") );
00032 }
00033 Progress StdProgress::authenticated() {
00034     return Progress( Progress::Authenticated,  i18n("Successfully authenticated.") );
00035 }
00036 Progress StdProgress::syncing(const QString& str) {
00037     return Progress( Progress::Syncing, i18n("Currently synchronizing %1").arg(str) );
00038 }
00039 Progress StdProgress::downloading(const QString& str) {
00040     return Progress( Progress::Downloading, i18n("Currently downloading %1").arg(str) );
00041 }
00042 Progress StdProgress::uploading(const QString& str) {
00043     return Progress( Progress::Uploading, i18n("Currently uploading %1").arg(str) );
00044 }
00045 Progress StdProgress::converting(const QString& str) {
00046     return Progress( Progress::Converting,  i18n("Converting %1 to native format").arg(str) );
00047 }
00048 Progress StdProgress::reconverting( const QString& str) {
00049     return Progress( Progress::Reconverting, i18n("Reconverting %1 to remote format").arg(str) );
00050 }
00051 Progress StdProgress::done() {
00052     return Progress( Progress::Done, i18n("Done.") );
00053 }
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 Fri Dec 21 14:23:41 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003