plugins/consoles/rcons/server/win32/Preferences.h
changeset 0 7f656887cf89
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     1 // Preferences.h
       
     2 // 
       
     3 // Copyright (c) 2010 Accenture. All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 // 
       
     9 // Initial Contributors:
       
    10 // Accenture - Initial contribution
       
    11 //
       
    12 
       
    13 #include "Misc.h"
       
    14 #include "stdafx.h"
       
    15 
       
    16 #ifndef __PREFERENCES_H__
       
    17 #define __PREFERENCES_H__
       
    18 
       
    19 
       
    20 class TPreferences
       
    21 	{
       
    22 public:
       
    23 	TPreferences();
       
    24 	void Read();
       
    25 	void Write() const;
       
    26 	unsigned short ServerPort() const;
       
    27 	unsigned int DefaultWindowWidth() const;
       
    28 	unsigned int DefaultWindowHeight() const;
       
    29 	unsigned int DefaultWindowPosX() const;
       
    30 	unsigned int DefaultWindowPosY() const;
       
    31 	int SystemPositionedWindows() const;
       
    32 	unsigned int NumOverflowLines() const;
       
    33 	LPCTSTR DefaultCaptureFilePath() const;
       
    34 	void SetServerPort(unsigned short aPort);
       
    35 	void SetDefaultWindowWidth(unsigned int aWidth);
       
    36 	void SetDefaultWindowHeight(unsigned int aHeight);
       
    37 	void SetDefaultWindowPosX(unsigned int aPosX);
       
    38 	void SetDefaultWindowPosY(unsigned int aPosY);
       
    39 	void SetSystemPositionedWindows(int aSystemPositionedWindows);
       
    40 	void SetNumOverflowLines(unsigned int aNumOverflowLines);
       
    41 	void SetDefaultCaptureFilePath(LPCTSTR aPath);
       
    42 private:
       
    43 	unsigned short iServerPort;
       
    44 	unsigned int iDefaultWindowWidth;
       
    45 	unsigned int iDefaultWindowHeight;
       
    46 	unsigned int iDefaultWindowPosX;
       
    47 	unsigned int iDefaultWindowPosY;
       
    48 	int iSystemPositionedWindows;
       
    49 	unsigned int iNumOverflowLines;
       
    50 	TCHAR iDefaultCaptureFilePath[MAX_PATH];
       
    51 	};
       
    52 
       
    53 #endif // __PREFERENCES_H__