Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
RequestDlg.cpp
Package: meeting_video_system.rar [view]
Upload User: panstart
Upload Date: 2022-04-12
Package Size: 199k
Code Size: 3k
Category:
VOIP program
Development Platform:
C++ Builder
- ////////////////////////////////////////////////////////////////////////////
- //
- //
- // Project : VideoNet version 1.1.
- // Description : Peer to Peer Video Conferencing over the LAN.
- // Author : Nagareshwar Y Talekar ( nsry2002@yahoo.co.in)
- // Date : 15-6-2004.
- //
- //
- // File description :
- // Name : RequestDlg.cpp
- // Details : Dialog box which display accept/reject choice , when
- // invitation from remote host arrives.
- //
- /////////////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "VideoNet.h"
- #include "RequestDlg.h"
- #include "VideoNetDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // RequestDlg dialog
- RequestDlg::RequestDlg(CWnd* pParent /*=NULL*/)
- : CDialog(RequestDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(RequestDlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void RequestDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(RequestDlg)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(RequestDlg, CDialog)
- //{{AFX_MSG_MAP(RequestDlg)
- ON_BN_CLICKED(IDOK, OnAccept)
- ON_BN_CLICKED(IDREJECT, OnReject)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- BOOL RequestDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- char str[600];
- sprintf(str,"Connection request from user %s ",rname);
- this->SetDlgItemText(IDC_MESG,str);
- return TRUE;
- }
- /**
- * Set remote user name and address
- */
- void RequestDlg::SetParameter(char *hostname,char *hostaddress,CDialog *dlg)
- {
- strcpy(rname,hostname);
- strcpy(raddress,hostaddress);
- pdlg=dlg;
- }
- /**
- * User has accepted the connection request
- * Now send acceptance request to remote user
- * and start the conference
- */
- void RequestDlg::OnAccept()
- {
- this->OnCancel();
- // Send notification to remote user
- ((CVideoNetDlg*)pdlg)->dcontrol.SendControlMessage(MESG_ACCEPT,NULL);
- // Start the conference...
- //((CVideoNetDlg*)pdlg)->StartConference();
- }
- /**
- * User has rejected the connection request
- * Now send reject notification request to remote user
- */
- void RequestDlg::OnReject()
- {
- // Send notification to remote user
- ((CVideoNetDlg*)pdlg)->dcontrol.SendControlMessage(MESG_REJECT,NULL);
- CDialog::OnCancel();
- }