~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.1.0/pjsip-apps/src/symbian_ua_gui/src/symbian_ua_guiApplication.cpp

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (1.1.11)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20140128182336-3xenud1kbnwmf3mz
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: symbian_ua_guiApplication.cpp 3550 2011-05-05 05:33:27Z nanang $ */
 
2
/* 
 
3
 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
 
18
 */
 
19
// [[[ begin generated region: do not modify [Generated System Includes]
 
20
// ]]] end generated region [Generated System Includes]
 
21
 
 
22
// [[[ begin generated region: do not modify [Generated Includes]
 
23
#include "symbian_ua_guiApplication.h"
 
24
#include "symbian_ua_guiDocument.h"
 
25
#ifdef EKA2
 
26
#include <eikstart.h>
 
27
#endif
 
28
// ]]] end generated region [Generated Includes]
 
29
 
 
30
 
 
31
// Needed by APS
 
32
TPtrC APP_UID = _L("EBD12EE4");
 
33
 
 
34
/**
 
35
 * @brief Returns the application's UID (override from CApaApplication::AppDllUid())
 
36
 * @return UID for this application (KUidsymbian_ua_guiApplication)
 
37
 */
 
38
TUid Csymbian_ua_guiApplication::AppDllUid() const
 
39
        {
 
40
        return KUidsymbian_ua_guiApplication;
 
41
        }
 
42
 
 
43
/**
 
44
 * @brief Creates the application's document (override from CApaApplication::CreateDocumentL())
 
45
 * @return Pointer to the created document object (Csymbian_ua_guiDocument)
 
46
 */
 
47
CApaDocument* Csymbian_ua_guiApplication::CreateDocumentL()
 
48
        {
 
49
        return Csymbian_ua_guiDocument::NewL( *this );
 
50
        }
 
51
 
 
52
#ifdef EKA2
 
53
 
 
54
/**
 
55
 *      @brief Called by the application framework to construct the application object
 
56
 *  @return The application (Csymbian_ua_guiApplication)
 
57
 */     
 
58
LOCAL_C CApaApplication* NewApplication()
 
59
        {
 
60
        return new Csymbian_ua_guiApplication;
 
61
        }
 
62
 
 
63
/**
 
64
* @brief This standard export is the entry point for all Series 60 applications
 
65
* @return error code
 
66
 */     
 
67
GLDEF_C TInt E32Main()
 
68
        {
 
69
        TInt err;
 
70
        
 
71
        err = EikStart::RunApplication( NewApplication );
 
72
 
 
73
        return err;
 
74
        }
 
75
        
 
76
#else   // Series 60 2.x main DLL program code
 
77
 
 
78
/**
 
79
* @brief This standard export constructs the application object.
 
80
* @return The application (Csymbian_ua_guiApplication)
 
81
*/
 
82
EXPORT_C CApaApplication* NewApplication()
 
83
        {
 
84
        return new Csymbian_ua_guiApplication;
 
85
        }
 
86
 
 
87
/**
 
88
* @brief This standard export is the entry point for all Series 60 applications
 
89
* @return error code
 
90
*/
 
91
GLDEF_C TInt E32Dll(TDllReason /*reason*/)
 
92
        {
 
93
        return KErrNone;
 
94
        }
 
95
 
 
96
#endif // EKA2