Examples of PhoneCallLogID


Examples of net.rim.blackberry.api.phone.phonelogs.PhoneCallLogID

        // Process more fields only if the callLog is instance of PhoneCallLog class (it might be ConferencePhoneCallLog).
        if (callLog.getClass() == PhoneCallLog.class) {
            final PhoneCallLog phoneCallLog = (PhoneCallLog) callLog;
            _callType = phoneCallLog.getType();
            final PhoneCallLogID logID = phoneCallLog.getParticipant();
            if (logID != null) {
                _name = logID.getName();
                _number = logID.getNumber();
                _addressBookNumber = logID.getAddressBookFormattedNumber();
                _addressBookType = logID.getType();
            }
        }
    }
View Full Code Here

Examples of net.rim.blackberry.api.phone.phonelogs.PhoneCallLogID

         * @return A copy of the phone call log
         */
        private PhoneCallLog copyPhoneCallLog(final PhoneCallLog callLog) {
            return new PhoneCallLog(new Date(callLog.getDate().getTime()),
                    callLog.getType(), callLog.getDuration(), callLog
                            .getStatus(), new PhoneCallLogID(callLog
                            .getParticipant().getNumber()), callLog.getNotes());
        }
View Full Code Here

Examples of net.rim.blackberry.api.phone.phonelogs.PhoneCallLogID

        private ConferencePhoneCallLog copyConferencePhoneCallLog(
                final ConferencePhoneCallLog callLog) {
            final ConferencePhoneCallLog newLog =
                    new ConferencePhoneCallLog(new Date(callLog.getDate()
                            .getTime()), callLog.getDuration(), callLog
                            .getStatus(), new PhoneCallLogID(callLog
                            .getParticipantAt(0).getNumber()),
                            new PhoneCallLogID(callLog.getParticipantAt(1)
                                    .getNumber()), callLog.getNotes());

            final int numParticipants = callLog.numberOfParticipants();

            for (int i = 2; i < numParticipants; ++i) {
                newLog.addParticipant(new PhoneCallLogID(callLog
                        .getParticipantAt(i).getNumber()));
            }

            return newLog;
        }
View Full Code Here

Examples of net.rim.blackberry.api.phone.phonelogs.PhoneCallLogID

        /**
         * Creates a new ConferencePhoneCallLogController object
         */
        public ConferencePhoneCallLogController() {
            this(new ConferencePhoneCallLog(new Date(), 0,
                    CallLog.STATUS_NORMAL, new PhoneCallLogID(""),
                    new PhoneCallLogID(""), ""));
        }
View Full Code Here

Examples of net.rim.blackberry.api.phone.phonelogs.PhoneCallLogID

            final int numParticipants = _participants.size();

            for (int i = 0; i < numParticipants; ++i) {
                final BasicEditField participant =
                        (BasicEditField) _participants.elementAt(i);
                conferencePhoneCallLog.setParticipantAt(i, new PhoneCallLogID(
                        participant.getText()));
            }

            final int oldNumParticipants =
                    conferencePhoneCallLog.numberOfParticipants();
View Full Code Here

Examples of net.rim.blackberry.api.phone.phonelogs.PhoneCallLogID

        public void addParticipant() {
            _participants.addElement(new BasicEditField("Participant: ", "",
                    Integer.MAX_VALUE, BasicEditField.FILTER_PHONE));
            final ConferencePhoneCallLog conferencePhoneCallLog =
                    (ConferencePhoneCallLog) _callLog;
            conferencePhoneCallLog.addParticipant(new PhoneCallLogID(""));
        }
View Full Code Here

Examples of net.rim.blackberry.api.phone.phonelogs.PhoneCallLogID

         * the old call type to -1, meaning there is no "old type". The old type
         * is used for validation when the phone call log is edited.
         */
        public PhoneCallLogController() {
            this(new PhoneCallLog(new Date(), PhoneCallLog.TYPE_RECEIVED_CALL,
                    0, CallLog.STATUS_NORMAL, new PhoneCallLogID(""), ""));
            _oldType = -1;
        }
View Full Code Here

Examples of net.rim.blackberry.api.phone.phonelogs.PhoneCallLogID

        protected void updateLog() {
            super.updateLog();

            final PhoneCallLog phoneCallLog = (PhoneCallLog) _callLog;
            phoneCallLog.setType(_type.getSelectedIndex());
            phoneCallLog.setParticipant(new PhoneCallLogID(_participant
                    .getText()));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.