[Sink-commits] sink/src/org/sink/swing ,
Status: Inactive
Brought to you by:
jmalonzo
From: Michael S. <mic...@us...> - 2005-06-14 02:22:38
|
Update of /cvsroot/sink/sink/src/org/sink/swing In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30246/src/org/sink/swing Modified Files: BuddyListController.java Log Message: 1) added java doc 2) removed System.out.println() and printStackTrace() calls Index: BuddyListController.java =================================================================== RCS file: /cvsroot/sink/sink/src/org/sink/swing/BuddyListController.java,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** BuddyListController.java 14 Jun 2005 00:47:27 -0000 1.47 --- BuddyListController.java 14 Jun 2005 02:22:18 -0000 1.48 *************** *** 518,524 **** */ public void accept(Buddy buddy) throws ConnectionException ! { ! System.out.println("i accepted, i am not the starter. starter: " + false); ! //tell them we accept sendMediaResponse(buddy, true); --- 518,522 ---- */ public void accept(Buddy buddy) throws ConnectionException ! { //tell them we accept sendMediaResponse(buddy, true); *************** *** 541,547 **** */ private void startMediaChat(Buddy buddy, boolean starter) ! { ! System.out.println("start media chat starter: " + starter); ! SplashScreen splash = new SplashScreen("data/pixmaps/splashVideo.png", null, 5000); --- 539,543 ---- */ private void startMediaChat(Buddy buddy, boolean starter) ! { SplashScreen splash = new SplashScreen("data/pixmaps/splashVideo.png", null, 5000); *************** *** 634,640 **** JOptionPane.showMessageDialog(null, buddy.getName()+ " accepted you video chat request.\nBut you cannot start a video chat with " + buddy.getName() + " since you are already video chatting.\nIt might be a good idea to tell " + buddy.getName() + " that you are occupied,\nbecause he/she is waiting for you to commence the video chat.", "Chat request accepted", JOptionPane.INFORMATION_MESSAGE); else ! { ! System.out.println("request has bee accepted. i am the starter. starter: " + true); ! startMediaChat(buddy, true); setVideoInProgress(true); --- 630,634 ---- JOptionPane.showMessageDialog(null, buddy.getName()+ " accepted you video chat request.\nBut you cannot start a video chat with " + buddy.getName() + " since you are already video chatting.\nIt might be a good idea to tell " + buddy.getName() + " that you are occupied,\nbecause he/she is waiting for you to commence the video chat.", "Chat request accepted", JOptionPane.INFORMATION_MESSAGE); else ! { startMediaChat(buddy, true); setVideoInProgress(true); *************** *** 702,705 **** --- 696,702 ---- } + /** + * @return true if the user has selected a video device. + */ public boolean hasVideoSelected() { |