This repository has been archived on 2025-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
CnC_Renegade/Code/Commando/DlgQuickmatch.h

85 lines
2.1 KiB
C++

/*
** Command & Conquer Renegade(tm)
** Copyright 2025 Electronic Arts Inc.
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/******************************************************************************
*
* NAME
* $Archive: /Commando/Code/Commando/DlgQuickmatch.h $
*
* DESCRIPTION
* Quick match dialog
*
* PROGRAMMER
* Denzil E. Long, Jr.
* $Author: Denzil_l $
*
* VERSION INFO
* $Revision: 8 $
* $Modtime: 8/23/01 8:30a $
*
******************************************************************************/
#ifndef __DLGQUICKMATCH_H__
#define __DLGQUICKMATCH_H__
#include "WOLQuickMatch.h"
#include <WWUI\MenuDialog.h>
#include <WWLib\Notify.h>
#include <WWOnline\RefPtr.h>
class WaitCondition;
class DlgMsgBoxEvent;
class DlgQuickMatch :
public MenuDialogClass,
public Observer<QuickMatchEvent>,
public Observer<DlgMsgBoxEvent>
{
public:
static bool DoDialog(void);
protected:
DlgQuickMatch();
virtual ~DlgQuickMatch();
bool FinalizeCreate(void);
void On_Init_Dialog(void);
void On_Frame_Update(void);
void On_Command(int ctrl, int message, DWORD param);
void Connect(void);
void SendMatchingInfo(void);
void OutputMessage(int messageID);
void OutputMessage(const WCHAR* message);
void HandleNotification(QuickMatchEvent&);
void HandleNotification(DlgMsgBoxEvent&);
private:
DlgQuickMatch(const DlgQuickMatch&);
const DlgQuickMatch& operator=(const DlgQuickMatch&);
WOLQuickMatch* mQuickMatch;
RefPtr<WaitCondition> mConnectWait;
DWORD mTimeoutTime;
DWORD mResendTime;
};
#endif // __DLGQUICKMATCH_H__