~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-common/libs/pjproject/pjsip-apps/src/pocketpj/PocketPJ.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-12-24 16:33:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101224163355-tkvvikqxbrbav6up
Tags: 0.9.11-1
* New upstream release
* Add new build dependencies on libwebkit-dev and libyaml-dev

* Bump Standards-Version up to 3.9.1
* Bump debhelper compatibility to 8
* Patch another typo in the upstream code (lintian notice)

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
/////////////////////////////////////////////////////////////////////////////
15
15
// CPocketPJApp
16
16
 
17
 
BEGIN_MESSAGE_MAP(CPocketPJApp, CWinApp)
18
 
        //{{AFX_MSG_MAP(CPocketPJApp)
19
 
                // NOTE - the ClassWizard will add and remove mapping macros here.
20
 
                //    DO NOT EDIT what you see in these blocks of generated code!
21
 
        //}}AFX_MSG_MAP
 
17
BEGIN_MESSAGE_MAP (CPocketPJApp, CWinApp)
 
18
    //{{AFX_MSG_MAP(CPocketPJApp)
 
19
    // NOTE - the ClassWizard will add and remove mapping macros here.
 
20
    //    DO NOT EDIT what you see in these blocks of generated code!
 
21
    //}}AFX_MSG_MAP
22
22
END_MESSAGE_MAP()
23
23
 
24
24
/////////////////////////////////////////////////////////////////////////////
25
25
// CPocketPJApp construction
26
26
 
27
27
CPocketPJApp::CPocketPJApp()
28
 
        : CWinApp()
 
28
        : CWinApp()
29
29
{
30
 
        // TODO: add construction code here,
31
 
        // Place all significant initialization in InitInstance
 
30
    // TODO: add construction code here,
 
31
    // Place all significant initialization in InitInstance
32
32
}
33
33
 
34
34
/////////////////////////////////////////////////////////////////////////////
41
41
 
42
42
BOOL CPocketPJApp::InitInstance()
43
43
{
44
 
        // Standard initialization
45
 
        // If you are not using these features and wish to reduce the size
46
 
        //  of your final executable, you should remove from the following
47
 
        //  the specific initialization routines you do not need.
48
 
 
49
 
        CPocketPJDlg dlg;
50
 
        m_pMainWnd = &dlg;
51
 
        int nResponse = dlg.DoModal();
52
 
        if (nResponse == IDOK)
53
 
        {
54
 
                // TODO: Place code here to handle when the dialog is
55
 
                //  dismissed with OK
56
 
        }
57
 
        else if (nResponse == IDCANCEL)
58
 
        {
59
 
                // TODO: Place code here to handle when the dialog is
60
 
                //  dismissed with Cancel
61
 
        }
62
 
 
63
 
        // Since the dialog has been closed, return FALSE so that we exit the
64
 
        //  application, rather than start the application's message pump.
65
 
        return FALSE;
 
44
    // Standard initialization
 
45
    // If you are not using these features and wish to reduce the size
 
46
    //  of your final executable, you should remove from the following
 
47
    //  the specific initialization routines you do not need.
 
48
 
 
49
    CPocketPJDlg dlg;
 
50
    m_pMainWnd = &dlg;
 
51
    int nResponse = dlg.DoModal();
 
52
 
 
53
    if (nResponse == IDOK) {
 
54
        // TODO: Place code here to handle when the dialog is
 
55
        //  dismissed with OK
 
56
    } else if (nResponse == IDCANCEL) {
 
57
        // TODO: Place code here to handle when the dialog is
 
58
        //  dismissed with Cancel
 
59
    }
 
60
 
 
61
    // Since the dialog has been closed, return FALSE so that we exit the
 
62
    //  application, rather than start the application's message pump.
 
63
    return FALSE;
66
64
}