Package net.rim.device.api.servicebook

Examples of net.rim.device.api.servicebook.ServiceRecord


                                   
                  if (records != null)
                  {
                      for (int i = 0; i < records.length; ++i)
                      {
                          ServiceRecord record = records[i];
                                     
                          if (record.isValid())
                            {
                              String name = record.getName();
                          
                              if (name.equalsIgnoreCase(emailService))
                              {
                                    ServiceConfiguration sc = new ServiceConfiguration(record);
                             
View Full Code Here


        final ServiceBook sb = ServiceBook.getSB();
        final ServiceRecord[] records = sb.getRecords();

        for( int i = 0; i < records.length; i++ ) {
            final ServiceRecord serviceRecord = records[ i ];
            if( serviceRecord.isValid() && !serviceRecord.isDisabled() && determineTransportType( serviceRecord ) != null ) {
                vc.addElement( new TransportObject( serviceRecord.getName(), determineTransportType( serviceRecord ),
                        serviceRecord.getUid() ) );
            }
        }

        final TransportObject[] list = new TransportObject[ vc.size() ];
View Full Code Here

            serviceList = new ServiceObject[ serviceRecords.length ];

            for( int i = 0; i < serviceRecords.length; i++ ) {

                final ServiceRecord serviceRecord = serviceRecords[ i ];
                String emailAddress = null;

                if( type == ServiceObject.TYPE_EMAIL ) {
                    final ServiceConfiguration serviceConfig = new ServiceConfiguration( serviceRecord );
                    emailAddress = serviceConfig.getEmailAddress();
                }

                serviceList[ i ] = new ServiceObject( emailAddress, serviceRecord.getName(), new Integer( type ), serviceRecord
                        .getUid(), serviceRecord.getCid() );

            }
            return serviceList;
        }
View Full Code Here

TOP

Related Classes of net.rim.device.api.servicebook.ServiceRecord

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.