com.skype.tutorial.step1
Class Tutorial_1

java.lang.Object
  extended by com.skype.tutorial.step1.Tutorial_1

public class Tutorial_1
extends java.lang.Object

Getting Started With SkypeKit: Tutorial Application, Step 1. This example illustrates a simple SkypeKit-based program that:

  1. Takes a Skype Name, password, and optional AppToken path name as command-line arguments
  2. Initiates login for that user
  3. Waits until the login process is complete
  4. Initiates logout
  5. Waits until logout is complete
  6. Cleans up and exits

Since:
1.0
Author:
Andrea Drane (ported/refactored from existing C++ tutorial code)

Field Summary
static int ACCOUNT_NAME_IDX
          Index of the account name in the command line argument list.
static int ACCOUNT_PWORD_IDX
          Index of the account password in the command line argument list.
static int APPTOKEN_FILE_IDX
          Index of the optional AppToken text file pathname in the command line argument list, which is always last.
static java.lang.String MY_CLASS_TAG
          Info/Debug console output message prefix/identifier tag.
private static AppToken myAppToken
           
private static MySession mySession
           
static int OPT_ARG_CNT
          Number of optional arguments in the command line argument list.
static int REQ_ARG_CNT
          Number of required arguments in the command line argument list.
 
Constructor Summary
Tutorial_1()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main loop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MY_CLASS_TAG

public static final java.lang.String MY_CLASS_TAG
Info/Debug console output message prefix/identifier tag. Corresponds to class name.

Since:
1.0
See Also:
Constant Field Values

ACCOUNT_NAME_IDX

public static final int ACCOUNT_NAME_IDX
Index of the account name in the command line argument list.

Since:
1.0
See Also:
Constant Field Values

ACCOUNT_PWORD_IDX

public static final int ACCOUNT_PWORD_IDX
Index of the account password in the command line argument list.

Since:
1.0
See Also:
Constant Field Values

REQ_ARG_CNT

public static final int REQ_ARG_CNT
Number of required arguments in the command line argument list.

Since:
1.0
See Also:
Constant Field Values

OPT_ARG_CNT

public static final int OPT_ARG_CNT
Number of optional arguments in the command line argument list.

Since:
1.0
See Also:
Constant Field Values

APPTOKEN_FILE_IDX

public static final int APPTOKEN_FILE_IDX
Index of the optional AppToken text file pathname in the command line argument list, which is always last.

Since:
1.0
See Also:
Constant Field Values

myAppToken

private static AppToken myAppToken

mySession

private static MySession mySession
Constructor Detail

Tutorial_1

public Tutorial_1()
Method Detail

main

public static void main(java.lang.String[] args)
Main loop

Parameters:
args -
  1. name of the target Skype account
  2. password for the target Skype account
  3. optional pathname of a text file containing an AppToken string
Since:
1.0