亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? outbox.java

?? 手機郵箱撒的方式方式方式的
?? JAVA
字號:
/* MujMail - Simple mail client for J2MECopyright (C) 2006 Nguyen Son Tung <n.sontung@gmail.com>Copyright (C) 2008 David Hauzar <david.hauzar.mujmail@gmail.com>This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */package mujmail;import javax.microedition.lcdui.Command;import javax.microedition.lcdui.Displayable;import mujmail.account.MailAccount;import mujmail.protocols.InProtocol;import mujmail.protocols.SMTP;import mujmail.threading.ThreadedEmails;/** * Stores mails which were already sent. * Offers form for writing mail. *  * Uses shared instance of class SMTP!! */public class OutBox extends PersistentBox {    /** The name of this source file */    private static final String SOURCE_FILE = "OutBox";    Command sendAll, sendThis;    /**     * Creates new out box.     *      * @param DBFile the identifier of RMS database where the mails of this box     *  will be stored.     * @param mMail the main object in the application     * @param name the name of the box     */    public OutBox(String DBFile, MujMail mMail, String name) {        super(DBFile, mMail, name);                        sendThis = new Command(Lang.get(Lang.BTN_OB_SEND), Command.ITEM, 1);        sendAll = new Command(Lang.get(Lang.BTN_OB_SENDALL), Command.ITEM, 2);        addCommand(sendThis);        addCommand(sendAll);    }    protected boolean isBusy() {        return (SMTP.getSMTPSingleton(getMujMail()).isBusy() || super.isBusy());    }    public void sendSingle(MessageHeader header) {        if (header != null) {            SMTP.getSMTPSingleton(getMujMail()).sendMail(header, this);        } else {            getMujMail().mainMenu();        }    }    public void sendAll() {        if (storage.getSize() > 0) {            SMTP.getSMTPSingleton(getMujMail()).sendMails(this);        } else {            getMujMail().mainMenu();        }    }    public void stop() {        SMTP.getSMTPSingleton(getMujMail()).stop();    }    /**     * Fills in the form for creating new mail, creates message header and     * body parts, saves or updates it in the database and adds the mail     * to the Outbox storage.     * If this instance is the same as {@link SendMail#callBox} and mode     * is {@link SendMail#EDIT}, saves the message to already existing record     * in the RMS database.     * If the mail is copied from Drafts to Outbox, deletes it from Drafts.     *      * @param sendMail the form for creating new mail     * @return the header of created mail     */    public MessageHeader addOutMail(SendMail sendMail) {        MessageHeader message = sendMail.createAndSaveMessage(this);                message.sendStatus = MessageHeader.TO_SEND;                if (sendMail.mode == SendMail.REPLY) {//we're replying, lets mark the mail being replied as replied            MessageHeader ibHeader = (MessageHeader) getMujMail().getInBox().getMessageHeaderAt( getMujMail().getInBox().getSelectedIndex() );            ibHeader.sendStatus = MessageHeader.REPLIED;                        MailAccount msgAcct = (MailAccount)getMujMail().getMailAccounts().get(ibHeader.getAccountID());            System.out.println("SETTING REPLIED FLAG: msgAcct.type="+msgAcct.getType());            //Set '\Answered' flag on server if it's an IMAP account            if (msgAcct.isIMAP()) {            	msgAcct.getProtocol().setFlags(ibHeader, "(\\Answered)", InProtocol.SET_FLAGS, this);            }            try {                getMujMail().getInBox().mailDB.saveHeader(ibHeader); //update sendStatus            } catch (MyException ex) {                getMujMail().getInBox().report(ex.getDetails(), SOURCE_FILE);            }        }        if (sendMail.mode == SendMail.EDIT && sendMail.callBox == this) {              // update the old one with the new one//            storage.setElementAt(message, getSelectedIndex());            MessageHeader oldMessage = storage.getMessageAt( getSelectedIndex() );            oldMessage.fillWith( message );        } else {//            storage.addElement( message );            if (storage instanceof ThreadedEmails) {                ((ThreadedEmails)storage).addRoot( message );            }        }        if (sendMail.mode == SendMail.FORWARD) {            sendMail.delete(sendMail.size() - 1);        }        sendMail.mode = SendMail.NORMAL;        sendMail.clear();        resort(); //we added a new mail, we have to resort to match the sorting criteria of the outbox        // if the mail is copied from Drafts to OutBox, we want to delete it        deleteFromDraftsIfCopyedToAnother(sendMail.callBox);        return message;    }        /**     * Deletes the mail that is actually marked in the box copyedFrom and that     * is copyed to this box if copyedFrom is Drafts and the message is copyed     * to another box.     *      * @param copyedFrom the box from which the message is copyed from     */    private void deleteFromDraftsIfCopyedToAnother(PersistentBox copyedFrom) {        // we assume that if copyedFrom is instanceof OutBox, it is Drafts        if (copyedFrom instanceof OutBox && copyedFrom != this) {            ((MessageHeader) copyedFrom.getMessageHeaderAt(                copyedFrom.getSelectedIndex())            ).deleteFromDBAndBox(this, Trash.TrashModes.NOT_MOVE_TO_TRASH);        }    }    protected void hideButtons() {        if (!btnsHidden) {            if (this == getMujMail().outBox || this == getMujMail().draft) {                removeCommand(sendAll);                removeCommand(sendThis);            }            super.hideButtons();        }    }    protected void showButtons() {        if (btnsHidden) {            if (this == getMujMail().outBox || this == getMujMail().draft) {                addCommand(sendAll);                addCommand(sendThis);            }            super.showButtons();        }    }    public void commandAction(Command c, Displayable d) {        //OutBox box = (OutBox)d; // box <--> this        super.commandAction(c, d);        if (c == sendAll) {            sendAll();        } else if (c == sendThis) {            sendSingle(getSelectedHeader());        } else if (c == stop) {            stop();        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区日韩| 337p亚洲精品色噜噜| 日韩精品最新网址| 色欧美片视频在线观看 | 国产91精品一区二区| 久久亚洲精精品中文字幕早川悠里 | 午夜电影网一区| 亚洲欧洲综合另类| 一二三四社区欧美黄| 亚洲天堂精品视频| 亚洲免费在线观看| 亚洲午夜视频在线| 天天综合日日夜夜精品| 日韩av网站在线观看| 久久精品国产亚洲一区二区三区| 九色|91porny| 国产iv一区二区三区| av不卡免费电影| 91网上在线视频| 欧美午夜理伦三级在线观看| 欧美猛男超大videosgay| 欧美男人的天堂一二区| 欧美成人a∨高清免费观看| 国产亚洲一区字幕| 亚洲日本韩国一区| 日本不卡123| 精品一区二区三区在线播放视频| 国产成人精品一区二区三区四区 | 精品一区二区在线免费观看| 国产91丝袜在线播放九色| 丁香六月综合激情| 在线精品视频小说1| 这里只有精品电影| 国产视频一区在线观看| 亚洲女爱视频在线| 美女mm1313爽爽久久久蜜臀| 国产不卡视频一区二区三区| 在线国产电影不卡| 欧美成人一区二区三区| 日韩伦理av电影| 日产欧产美韩系列久久99| 成人综合在线观看| 欧美日韩国产综合一区二区三区| 久久久久久久久久久久久女国产乱| 亚洲视频免费在线| 韩国午夜理伦三级不卡影院| 日本道免费精品一区二区三区| 日韩欧美亚洲国产精品字幕久久久| 欧美经典一区二区| 日韩电影在线免费| 99re这里只有精品6| 日韩欧美一级精品久久| 亚洲一区在线观看免费 | 免费高清在线视频一区·| 成人激情av网| 欧美不卡视频一区| 亚洲图片欧美视频| 91亚洲精品乱码久久久久久蜜桃| 精品国产sm最大网站免费看| 亚洲一区在线观看免费| 99久久亚洲一区二区三区青草| 精品国产制服丝袜高跟| 亚洲成人精品在线观看| 91在线视频播放地址| 久久精品无码一区二区三区| 日本亚洲一区二区| 欧美在线免费视屏| 亚洲美女屁股眼交| 成人午夜又粗又硬又大| 2014亚洲片线观看视频免费| 免费在线观看不卡| 5858s免费视频成人| 亚洲成人福利片| 在线精品视频一区二区三四| 亚洲精品国产一区二区精华液 | 免费观看在线综合| 日韩欧美一级精品久久| 日韩电影免费一区| 欧美一区二区私人影院日本| 亚洲第一精品在线| 欧美日韩另类一区| 日韩av一级片| 精品免费视频一区二区| 精品一区二区久久| 久久婷婷色综合| 国产一区欧美二区| 久久精品人人做| 国产成人精品一区二 | 欧美在线播放高清精品| 亚洲一区av在线| 欧美一区二区三区四区五区| 蓝色福利精品导航| 久久久久国色av免费看影院| 成年人网站91| 一区二区三区不卡在线观看 | 欧美日本国产视频| 青青青爽久久午夜综合久久午夜| 日韩一级片在线观看| 精品一区二区成人精品| 久久精品欧美一区二区三区麻豆| 成人a区在线观看| 亚洲成人精品在线观看| 天天综合色天天综合色h| 国产馆精品极品| 喷白浆一区二区| 国产欧美日韩另类一区| 99久久99久久精品免费观看| 欧美一卡在线观看| 国产成人综合网| 中文字幕人成不卡一区| av激情综合网| 亚洲免费av观看| 7777精品伊人久久久大香线蕉经典版下载 | 精品日韩欧美在线| 日韩国产一区二| 国产精品女主播在线观看| 一本色道综合亚洲| 午夜在线电影亚洲一区| 精品久久久网站| fc2成人免费人成在线观看播放| 国产精品家庭影院| 欧美精品一区在线观看| 成人精品一区二区三区中文字幕| 亚洲美女少妇撒尿| 日韩三级视频在线观看| 成人av影院在线| 自拍偷拍欧美激情| 久久久久久久久99精品| 色综合天天狠狠| 老司机精品视频导航| 中文字幕免费观看一区| 日本高清不卡视频| 成人动漫中文字幕| 麻豆高清免费国产一区| 中文字幕第一区二区| 欧美日韩美女一区二区| 成人性生交大片免费看在线播放 | 国产精品日日摸夜夜摸av| 欧美日韩一区小说| 国产超碰在线一区| 午夜激情综合网| 国产精品白丝在线| 欧美日韩亚洲丝袜制服| 色老综合老女人久久久| 国产精品亚洲第一| 亚洲福利视频三区| 亚洲欧美怡红院| 日韩精品自拍偷拍| 日本道免费精品一区二区三区| 狠狠色丁香久久婷婷综| 性久久久久久久| 怡红院av一区二区三区| 日本一区二区三区免费乱视频| 91麻豆国产在线观看| 94-欧美-setu| 成人国产免费视频| 国产一区二区伦理| 喷水一区二区三区| 午夜精品福利一区二区蜜股av| 石原莉奈一区二区三区在线观看| 成人欧美一区二区三区在线播放| 精品成人一区二区三区四区| 欧美精品一二三四| 日本精品视频一区二区三区| 色婷婷av一区二区三区gif| 成人动漫在线一区| 岛国精品在线观看| 懂色一区二区三区免费观看| 国产成人av电影在线| 国产精品91xxx| 成人免费视频播放| 日韩av二区在线播放| 日本欧美韩国一区三区| 亚洲一区二区精品视频| 亚洲一区二区精品视频| 亚洲高清一区二区三区| 亚洲自拍偷拍综合| 亚洲国产精品精华液网站| 蜜桃久久久久久| 久久不见久久见中文字幕免费| 男女男精品网站| 韩国av一区二区三区四区| 精品一二线国产| 色哟哟日韩精品| 欧美日韩在线不卡| 日韩美女视频在线| 久久精品人人做| 亚洲电影在线播放| 日本欧美久久久久免费播放网| 久久av老司机精品网站导航| 国产91富婆露脸刺激对白| www.日韩精品| 成人免费毛片a| 欧美精品tushy高清| 欧美大片在线观看一区二区| 久久亚洲二区三区| 综合电影一区二区三区| 久久www免费人成看片高清| 丰满岳乱妇一区二区三区| 99re成人精品视频|