Package blackberry.invoke.phoneArguments

Examples of blackberry.invoke.phoneArguments.PhoneArgumentsObject


    private void invokePhone( final Object arg ) throws Exception {
        PhoneArguments args = null;

        if( arg instanceof PhoneArgumentsObject ) {
            final PhoneArgumentsObject p = (PhoneArgumentsObject) arg;

            final boolean isSmartDialing = p.isSmartDialing();
            final int callType = p.getView();
            final int lineId = p.getLineId();

            if( lineId != PhoneArgumentsConstructor.NO_LINEID && callType == PhoneArgumentsConstructor.VIEW_VOICEMAIL ) {
                // net.rim.blackberry.api.phone.Phone does not support using 'voicemail' to get to the device's
                // voicemail account, since Invoke.invokeApplication doesn't support line id's, we can't
                // handle the case where a developer selects a LINE_ID and wants to call it's specific voicemail.
                throw new IllegalArgumentException();
            }

            String phoneNumber;

            if( callType == PhoneArgumentsConstructor.VIEW_VOICEMAIL ) {
                phoneNumber = PhoneArguments.VOICEMAIL;
            } else {
                phoneNumber = p.getDialString();
            }

            if( phoneNumber == null || phoneNumber.length() == 0 ) {
                args = new PhoneArguments();
            } else if( lineId != PhoneArgumentsConstructor.NO_LINEID ) {
View Full Code Here

TOP

Related Classes of blackberry.invoke.phoneArguments.PhoneArgumentsObject

Copyright © 2018 www.massapicom. 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.