Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CAllDeviceList Class Reference

#include <profile.h>

Inheritance diagram for CAllDeviceList:

CDeviceList List of all members.

Public Member Functions

 CAllDeviceList ()
 ~CAllDeviceList ()
virtual unsigned Count ()
virtual CStringDeviceName (unsigned u)
virtual CStringDisplayName (unsigned u)
virtual void Enumerate ()
virtual BOOL IsValidDeviceName (LPCTSTR lpstr)

Private Attributes

CStringArray m_csaDeviceNames
CStringArray m_csaDisplayNames

Constructor & Destructor Documentation

CAllDeviceList::CAllDeviceList  )  [inline]
 

Definition at line 143 of file icmui/profile.h.

00143 {}

CAllDeviceList::~CAllDeviceList  )  [inline]
 

Definition at line 144 of file icmui/profile.h.

00144 {}


Member Function Documentation

virtual unsigned CAllDeviceList::Count  )  [inline, virtual]
 

Reimplemented from CDeviceList.

Definition at line 146 of file icmui/profile.h.

References CStringArray::Count(), and m_csaDeviceNames.

Referenced by IsValidDeviceName().

00146 { return m_csaDeviceNames.Count(); }

virtual CString& CAllDeviceList::DeviceName unsigned  u  )  [inline, virtual]
 

Reimplemented from CDeviceList.

Definition at line 147 of file icmui/profile.h.

References DeviceName(), and m_csaDeviceNames.

Referenced by DeviceName().

00147 { return m_csaDeviceNames[u]; }

virtual CString& CAllDeviceList::DisplayName unsigned  u  )  [inline, virtual]
 

Reimplemented from CDeviceList.

Definition at line 148 of file icmui/profile.h.

References DisplayName(), and m_csaDisplayNames.

Referenced by DisplayName().

00148 { return m_csaDisplayNames[u]; }

void CAllDeviceList::Enumerate  )  [virtual]
 

Reimplemented from CDeviceList.

Definition at line 358 of file profile.cpp.

References CStringArray::Add(), CScannerList::Count(), CMonitorList::Count(), CPrinterList::Count(), CScannerList::DeviceName(), CMonitorList::DeviceName(), CPrinterList::DeviceName(), CScannerList::DisplayName(), CMonitorList::DisplayName(), CPrinterList::DisplayName(), CScannerList::Enumerate(), CPrinterList::Enumerate(), CMonitorList::Enumerate(), m_csaDeviceNames, and m_csaDisplayNames.

Referenced by IsValidDeviceName().

00358 { 00359 00360 CMonitorList cml; 00361 CPrinterList cpl; 00362 CScannerList csl; 00363 00364 cml.Enumerate(); 00365 cpl.Enumerate(); 00366 csl.Enumerate(); 00367 00368 for (unsigned u = 0; u < cpl.Count(); u++) { 00369 m_csaDeviceNames.Add(cpl.DeviceName(u)); 00370 m_csaDisplayNames.Add(cpl.DisplayName(u)); 00371 } 00372 00373 for (u = 0; u < cml.Count(); u++) { 00374 m_csaDeviceNames.Add(cml.DeviceName(u)); 00375 m_csaDisplayNames.Add(cml.DisplayName(u)); 00376 } 00377 00378 for (u = 0; u < csl.Count(); u++) { 00379 m_csaDeviceNames.Add(csl.DeviceName(u)); 00380 m_csaDisplayNames.Add(csl.DisplayName(u)); 00381 } 00382 }

BOOL CAllDeviceList::IsValidDeviceName LPCTSTR  lpstr  )  [virtual]
 

Reimplemented from CDeviceList.

Definition at line 386 of file profile.cpp.

References BOOL, Count(), Enumerate(), FALSE, IsValidDeviceName(), and m_csaDeviceNames.

Referenced by IsValidDeviceName().

00386 { 00387 00388 if (!lpstrRef) return FALSE; 00389 00390 if (!Count()) 00391 Enumerate(); 00392 00393 for (unsigned u = 0; u < Count(); u++) 00394 if (!lstrcmpi(m_csaDeviceNames[u], lpstrRef)) 00395 break; 00396 00397 return u < Count(); 00398 }


Member Data Documentation

CStringArray CAllDeviceList::m_csaDeviceNames [private]
 

Definition at line 139 of file icmui/profile.h.

Referenced by Count(), DeviceName(), Enumerate(), and IsValidDeviceName().

CStringArray CAllDeviceList::m_csaDisplayNames [private]
 

Definition at line 140 of file icmui/profile.h.

Referenced by DisplayName(), and Enumerate().


The documentation for this class was generated from the following files:
Generated on Sat May 15 19:46:26 2004 for test by doxygen 1.3.7