Examples of PhoneCallLog


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

        _callNotes = callLog.getNotes();
        _callStatus = callLog.getStatus();

        // 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.PhoneCallLog

            final DataTemplate dataTemplate = new DataTemplate(_view, 1, 1) {
                public Field[] getDataFields(final int modelRowIndex) {
                    final CallLog log = (CallLog) _model.getRow(modelRowIndex);
                    String text;
                    if (log instanceof PhoneCallLog) {
                        final PhoneCallLog phoneCallLog = (PhoneCallLog) log;
                        text = phoneCallLog.getParticipant().getNumber();
                    } else {
                        text = "Conference call";
                    }

                    final Field[] fields =
View Full Code Here

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

         *
         * @return True if the phone call log is saved; false otherwise.
         */
        private boolean savePhoneCallLog() {
            if (_controller.validate()) {
                final PhoneCallLog phoneCallLog =
                        (PhoneCallLog) _controller.getCallLog();

                if (phoneCallLog.getType() == PhoneCallLog.TYPE_MISSED_CALL_UNOPENED
                        || phoneCallLog.getType() == PhoneCallLog.TYPE_MISSED_CALL_OPENED) {
                    PhoneLogsDemo.this._missedCallModel.addRow(phoneCallLog);
                } else {
                    PhoneLogsDemo.this._normalCallModel.addRow(phoneCallLog);
                }

View Full Code Here

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

            _model = model;

            setTitle(new LabelField("View Call Log"));

            if (callLog instanceof PhoneCallLog) {
                final PhoneCallLog phoneCallLog = (PhoneCallLog) callLog;
                _controller = new PhoneCallLogController(phoneCallLog);
            } else {
                final ConferencePhoneCallLog conferencePhoneCallLog =
                        (ConferencePhoneCallLog) callLog;
                _controller =
View Full Code Here

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

            _model = model;

            setTitle(new LabelField("Edit Call Log"));

            if (callLog instanceof PhoneCallLog) {
                final PhoneCallLog phoneCallLog = (PhoneCallLog) callLog;
                final PhoneCallLog copy = copyPhoneCallLog(phoneCallLog);
                _controller = new PhoneCallLogController(copy);
            } else {
                final ConferencePhoneCallLog conferencePhoneCallLog =
                        (ConferencePhoneCallLog) callLog;
                final ConferencePhoneCallLog copy =
View Full Code Here

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

         * @param callLog
         *            The phone call log to be copied
         * @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.PhoneCallLog

         * This constructor creates a new instance of a phone call log, and sets
         * 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.PhoneCallLog

         * controller's fields
         */
        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.