Changeset 47311 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 22, 2013 3:10:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r47003 r47311 258 258 " [--directory] [--secure] [--tmpdir <directory>]\n" 259 259 " [--domain <domain>] [--mode <mode>] [--verbose]\n" 260 "\n" 261 " list <all|sessions|processes> [--verbose]\n" 260 262 "\n" 261 263 " stat\n" … … 2782 2784 } 2783 2785 2784 #ifdef DEBUG2785 2786 static RTEXITCODE handleCtrlList(ComPtr<IGuest> guest, HandlerArg *pArg) 2786 2787 { … … 2792 2793 RTEXITCODE rcExit = RTEXITCODE_SUCCESS; 2793 2794 2795 bool fListAll = false; 2794 2796 bool fListSessions = false; 2797 bool fListProcesses = false; 2795 2798 if (!RTStrICmp(pArg->argv[0], "sessions")) 2796 2799 fListSessions = true; 2797 bool fListProcesses = false; 2798 if (!RTStrICmp(pArg->argv[0], "all")) 2799 { 2800 fListSessions = true; 2801 fListProcesses = true; 2802 } 2803 2804 if (fListSessions) 2800 else if (!RTStrICmp(pArg->argv[0], "processes")) 2801 fListSessions = fListProcesses = true; /* Showing processes implies showing sessions. */ 2802 else if (!RTStrICmp(pArg->argv[0], "all")) 2803 fListAll = true; 2804 2805 /** @todo Handle "--verbose" using RTGetOpt. */ 2806 /** @todo Do we need a machine-readable output here as well? */ 2807 2808 if ( fListAll 2809 || fListSessions) 2805 2810 { 2806 2811 RTPrintf("Active guest sessions:\n"); … … 2828 2833 i, uID, strUser.raw(), strName.raw()); 2829 2834 2830 if (fListProcesses) 2835 if ( fListAll 2836 || fListProcesses) 2831 2837 { 2832 2838 SafeIfaceArray <IGuestProcess> collProcesses; … … 2865 2871 return rcExit; 2866 2872 } 2867 #endif2868 2873 2869 2874 /** … … 2915 2920 || !strcmp(pArg->argv[1], "updateadds")) 2916 2921 rcExit = handleCtrlUpdateAdditions(guest, &arg); 2917 #ifdef DEBUG2918 2922 else if ( !strcmp(pArg->argv[1], "list")) 2919 2923 rcExit = handleCtrlList(guest, &arg); 2920 #endif2921 /** @todo Implement a "sessions list" command to list all opened2922 * guest sessions along with their (friendly) names. */2923 2924 else 2924 2925 rcExit = errorSyntax(USAGE_GUESTCONTROL, "Unknown sub command '%s' specified!", pArg->argv[1]);
Note:
See TracChangeset
for help on using the changeset viewer.