CCPDFPrinterInstaller Class Reference

Helper class used to install the port monitor along with the PDF printer. More...

#include <CCPrintInstallFunctions.h>

Inherits PrinterInstall.

Collaboration diagram for CCPDFPrinterInstaller:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CCPDFPrinterInstaller (HWND hWnd)
 Default constructor.
bool DoInstall (HMODULE hModule=NULL, LPTSTR installationPath="")
 CC PDF Printer driver install function.
bool DoRemove ()
 CC PDF Printer driver removal function.
bool IsPrinterInstalled ()
 Tests if the CC PDF Printer driver is installed on this system.

Protected Member Functions

void ShowError (LPCTSTR lpError)
 Display an error message dialog.

Protected Attributes

HWND m_hWnd
 Parent window handle.

Detailed Description

Helper class used to install the port monitor along with the PDF printer.

Definition at line 35 of file CCPrintInstallFunctions.h.


Constructor & Destructor Documentation

CCPDFPrinterInstaller::CCPDFPrinterInstaller ( HWND  hWnd  ) 

Default constructor.

Parameters:
hWnd Handle to the parent window

Definition at line 120 of file CCPrintInstallFunctions.cpp.


Member Function Documentation

bool CCPDFPrinterInstaller::DoInstall ( HMODULE  hModule = NULL,
LPTSTR  installationPath = "" 
)

CC PDF Printer driver install function.

Parameters:
hModule Handle to the module that should be used to retrieve the driver files path from; NULL to use this module
Returns:
true if successfully installed, false if failed

Definition at line 157 of file CCPrintInstallFunctions.cpp.

References PrinterInstall::AddPortMonitor(), CanOpenPDFFiles(), ConcatPaths(), PrinterInstall::GetError(), PrinterInstall::GetLastError(), PrinterInstall::Install(), m_hWnd, PrinterInstall::RemovePortMonitor(), CCPrintRegistry::SetRegistryBool(), CCPrintRegistry::SetRegistryString(), SETTINGS_AUTOOPEN, ShowError(), tstring, and PrinterInstall::Uninstall().

Referenced by InstallPrinter().

bool CCPDFPrinterInstaller::DoRemove (  ) 

CC PDF Printer driver removal function.

Returns:
true if uninstalled successfully, false if failed

Definition at line 297 of file CCPrintInstallFunctions.cpp.

References PrinterInstall::GetError(), PrinterInstall::GetLastError(), m_hWnd, PrinterInstall::RemovePortMonitor(), ShowError(), and PrinterInstall::Uninstall().

Referenced by RemovePrinter().

bool CCPDFPrinterInstaller::IsPrinterInstalled (  ) 

Tests if the CC PDF Printer driver is installed on this system.

Parameters:
hWnd Handle to the parent window
Returns:
true if the CC PDF Printer driver is installed on the system, false if not

Definition at line 137 of file CCPrintInstallFunctions.cpp.

References PrinterInstall::IsPrinterInstalled(), and ShowError().

Referenced by IsInstalled().

void CCPDFPrinterInstaller::ShowError ( LPCTSTR  lpError  )  [protected]

Display an error message dialog.

Parameters:
lpError Error string

Definition at line 128 of file CCPrintInstallFunctions.cpp.

References m_hWnd.

Referenced by DoInstall(), DoRemove(), and IsPrinterInstalled().


The documentation for this class was generated from the following files:

Generated on Mon Jun 18 12:40:42 2012 for CC PDF Converter by doxygen 1.6.1