⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testsynclistener.java

📁 j2me java syncml moblie
💻 JAVA
字号:
/*
 * Copyright (C) 2007 Funambol
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package com.funambol.syncml.client;

import com.funambol.util.Log;
import com.funambol.util.SyncListener;
import com.funambol.syncml.spds.SyncItem;

public class TestSyncListener implements SyncListener {
    public static boolean RUN;
    public static int result;
    public static int counter;
    
    /** Creates a new instance of TestSyncListener */
    public TestSyncListener() {
    }
    public void itemReceived(Object item) {
    }
    
    public void startSession() {
        RUN = true;
    }
    
    public void endSession(int i) {
        Log.info("######Listener###### END SESSION WITH STATUS: " + i);
        result = i;
        RUN = false;
    }
    
    public void startConnecting() {
    }
    
    public void endConnecting(int i) {
    }
    
    public boolean startSyncing(int i) {
        return true;
    }
    
    public void endSyncing() {
    }
    
    public void startMapping() {
    }
    
    public void endMapping() {
    }
    
    public void startReceiving(int i) {
    }
    
    public void endReceiving() {
    }
    
    public void itemDeleted(Object object) {
    
    }
    
    public void itemUpdated(Object object, Object object0) {
    }
    
    public void itemUpdated(Object object) {
    
    }
    
    public void dataReceived(String string, int i) {
    }
    
    public void startSending(int i, int i0, int i1) {
    }
    
    public void itemAddSent(Object object) {
    }
    
    public void itemReplaceSent(Object object) {
    }
    
    public void itemDeleteSent(Object object) {
    }
    
    public void endSending() {
    }

    public void syncStarted(int alertCode) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -