diff options
Diffstat (limited to 'pjsip-apps/src/symbian_ua_gui/inc')
13 files changed, 830 insertions, 0 deletions
diff --git a/pjsip-apps/src/symbian_ua_gui/inc/Symbian_ua_guiSettingItemListSettings.h b/pjsip-apps/src/symbian_ua_gui/inc/Symbian_ua_guiSettingItemListSettings.h new file mode 100644 index 0000000..aabe4aa --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/Symbian_ua_guiSettingItemListSettings.h @@ -0,0 +1,73 @@ +/* $Id: Symbian_ua_guiSettingItemListSettings.h 3550 2011-05-05 05:33:27Z nanang $ */ +/* + * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) + * + * 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 2 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, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef SYMBIAN_UA_GUISETTINGITEMLISTSETTINGS_H +#define SYMBIAN_UA_GUISETTINGITEMLISTSETTINGS_H + +// [[[ begin generated region: do not modify [Generated Includes] +#include <e32std.h> +// ]]] end generated region [Generated Includes] + +// [[[ begin generated region: do not modify [Generated Constants] +const int KEd_registrarMaxLength = 255; +const int KEd_userMaxLength = 255; +const int KEd_passwordMaxLength = 32; +const int KEd_stun_serverMaxLength = 255; +// ]]] end generated region [Generated Constants] + +/** + * @class TSymbian_ua_guiSettingItemListSettings Symbian_ua_guiSettingItemListSettings.h + */ +class TSymbian_ua_guiSettingItemListSettings + { +public: + // construct and destroy + static TSymbian_ua_guiSettingItemListSettings* NewL(); + void ConstructL(); + +private: + // constructor + TSymbian_ua_guiSettingItemListSettings(); + // [[[ begin generated region: do not modify [Generated Accessors] +public: + TDes& Ed_registrar(); + void SetEd_registrar(const TDesC& aValue); + TDes& Ed_user(); + void SetEd_user(const TDesC& aValue); + TDes& Ed_password(); + void SetEd_password(const TDesC& aValue); + TBool& B_srtp(); + void SetB_srtp(const TBool& aValue); + TBool& B_ice(); + void SetB_ice(const TBool& aValue); + TDes& Ed_stun_server(); + void SetEd_stun_server(const TDesC& aValue); + // ]]] end generated region [Generated Accessors] + + // [[[ begin generated region: do not modify [Generated Members] +protected: + TBuf<KEd_registrarMaxLength> iEd_registrar; + TBuf<KEd_userMaxLength> iEd_user; + TBuf<KEd_passwordMaxLength> iEd_password; + TBool iB_srtp; + TBool iB_ice; + TBuf<KEd_stun_serverMaxLength> iEd_stun_server; + // ]]] end generated region [Generated Members] + + }; +#endif // SYMBIAN_UA_GUISETTINGITEMLISTSETTINGS_H diff --git a/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua.h b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua.h new file mode 100644 index 0000000..431b2e7 --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua.h @@ -0,0 +1,50 @@ +/* $Id: ua.cpp 1793 2008-02-14 13:39:24Z bennylp $ */
+/*
+ * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
+ * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
+ *
+ * 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 2 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __SYMBIAN_UA_H__
+#define __SYMBIAN_UA_H__
+
+#include <stddef.h>
+
+typedef struct
+{
+ void (*on_info)(const wchar_t* buf);
+ void (*on_incoming_call)(const wchar_t* caller_disp, const wchar_t* caller_uri);
+ void (*on_call_end)(const wchar_t* reason);
+ void (*on_reg_state)(bool success);
+ void (*on_unreg_state)(bool success);
+} symbian_ua_info_cb_t;
+
+int symbian_ua_init();
+int symbian_ua_destroy();
+
+void symbian_ua_set_info_callback(const symbian_ua_info_cb_t *cb);
+
+int symbian_ua_set_account(const char *domain, const char *username,
+ const char *password,
+ bool use_srtp, bool use_ice);
+
+bool symbian_ua_anycall();
+int symbian_ua_makecall(const char* dest_url);
+int symbian_ua_endcall();
+int symbian_ua_answercall();
+
+#endif
+
diff --git a/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_gui.hrh b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_gui.hrh new file mode 100644 index 0000000..72127e0 --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_gui.hrh @@ -0,0 +1,17 @@ +/*
+========================================================================
+ Name : symbian_ua_gui.hrh
+ Author : nanang
+ Copyright : (c) PJSIP 2008
+ Description :
+========================================================================
+*/
+enum Tsymbian_ua_guiViewUids
+ {
+ ESymbian_ua_guiContainerViewId = 1,
+ ESymbian_ua_guiSettingItemListViewId
+ };
+enum TSymbian_ua_guiApplicationControls
+ {
+ ESymbian_ua_guiApplicationDlg_wait_init = 1
+ };
diff --git a/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_gui.pan b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_gui.pan new file mode 100644 index 0000000..a06f56b --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_gui.pan @@ -0,0 +1,18 @@ +
+#ifndef SYMBIAN_UA_GUI_PAN_H
+#define SYMBIAN_UA_GUI_PAN_H
+
+/** symbian_ua_gui application panic codes */
+enum Tsymbian_ua_guiPanics
+ {
+ Esymbian_ua_guiUi = 1
+ // add further panics here
+ };
+
+inline void Panic(Tsymbian_ua_guiPanics aReason)
+ {
+ _LIT(applicationName,"symbian_ua_gui");
+ User::Panic(applicationName, aReason);
+ }
+
+#endif // SYMBIAN_UA_GUI_PAN_H
diff --git a/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiAppUi.h b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiAppUi.h new file mode 100644 index 0000000..36fb720 --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiAppUi.h @@ -0,0 +1,129 @@ +/* $Id: symbian_ua_guiAppUi.h 3550 2011-05-05 05:33:27Z nanang $ */ +/* + * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) + * + * 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 2 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, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef SYMBIAN_UA_GUIAPPUI_H +#define SYMBIAN_UA_GUIAPPUI_H + +// [[[ begin generated region: do not modify [Generated Includes] +#include <aknviewappui.h> +#include <aknwaitdialog.h> +// ]]] end generated region [Generated Includes] + +// [[[ begin generated region: do not modify [Generated Forward Declarations] +class Csymbian_ua_guiContainerView; +class Csymbian_ua_guiSettingItemListView; +// ]]] end generated region [Generated Forward Declarations] + +/** + * @class Csymbian_ua_guiAppUi symbian_ua_guiAppUi.h + * @brief The AppUi class handles application-wide aspects of the user interface, including + * view management and the default menu, control pane, and status pane. + */ +class Csymbian_ua_guiAppUi : public CAknViewAppUi, public CTimer + { +public: + // constructor and destructor + Csymbian_ua_guiAppUi(); + virtual ~Csymbian_ua_guiAppUi(); + void ConstructL(); + +public: + // from CCoeAppUi + TKeyResponse HandleKeyEventL( + const TKeyEvent& aKeyEvent, + TEventCode aType ); + + // from CEikAppUi + void HandleCommandL( TInt aCommand ); + void HandleResourceChangeL( TInt aType ); + + // from CAknAppUi + void HandleViewDeactivation( + const TVwsViewId& aViewIdToBeDeactivated, + const TVwsViewId& aNewlyActivatedViewId ); + +private: + void InitializeContainersL(); + // [[[ begin generated region: do not modify [Generated Methods] +public: + void ExecuteDlg_wait_initLD( const TDesC* aOverrideText = NULL ); + void RemoveDlg_wait_initL(); + // ]]] end generated region [Generated Methods] + + // [[[ begin generated region: do not modify [Generated Instance Variables] +private: + CAknWaitDialog* iDlg_wait_init; + class CProgressDialogCallback; + CProgressDialogCallback* iDlg_wait_initCallback; + Csymbian_ua_guiContainerView* iSymbian_ua_guiContainerView; + Csymbian_ua_guiSettingItemListView* iSymbian_ua_guiSettingItemListView; + // ]]] end generated region [Generated Instance Variables] + + + // [[[ begin [User Handlers] +protected: + void HandleSymbian_ua_guiAppUiApplicationSpecificEventL( + TInt aType, + const TWsEvent& anEvent ); + void HandleDlg_wait_initCanceledL( CAknProgressDialog* aDialog ); + // ]]] end [User Handlers] + + + // [[[ begin [Overridden Methods] +protected: + void HandleApplicationSpecificEventL( + TInt aType, + const TWsEvent& anEvent ); + // ]]] end [Overridden Methods] + + virtual void RunL(); + + // [[[ begin [MProgressDialogCallback support] +private: + typedef void ( Csymbian_ua_guiAppUi::*ProgressDialogEventHandler )( + CAknProgressDialog* aProgressDialog ); + + /** + * This is a helper class for progress/wait dialog callbacks. It routes the dialog's + * cancel notification to the handler function for the cancel event. + */ + class CProgressDialogCallback : public CBase, public MProgressDialogCallback + { + public: + CProgressDialogCallback( + Csymbian_ua_guiAppUi* aHandlerObj, + CAknProgressDialog* aDialog, + ProgressDialogEventHandler aHandler ) : + handlerObj( aHandlerObj ), dialog( aDialog ), handler( aHandler ) + {} + + void DialogDismissedL( TInt aButtonId ) + { + ( handlerObj->*handler )( dialog ); + } + private: + Csymbian_ua_guiAppUi* handlerObj; + CAknProgressDialog* dialog; + ProgressDialogEventHandler handler; + }; + + // ]]] end [MProgressDialogCallback support] + + }; + +#endif // SYMBIAN_UA_GUIAPPUI_H diff --git a/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiApplication.h b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiApplication.h new file mode 100644 index 0000000..af53b73 --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiApplication.h @@ -0,0 +1,45 @@ +/* $Id: symbian_ua_guiApplication.h 3550 2011-05-05 05:33:27Z nanang $ */ +/* + * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) + * + * 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 2 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, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef SYMBIAN_UA_GUIAPPLICATION_H +#define SYMBIAN_UA_GUIAPPLICATION_H + +// [[[ begin generated region: do not modify [Generated Includes] +#include <aknapp.h> +// ]]] end generated region [Generated Includes] + +// [[[ begin generated region: do not modify [Generated Constants] +const TUid KUidsymbian_ua_guiApplication = { 0xEBD12EE4 }; +// ]]] end generated region [Generated Constants] + +/** + * + * @class Csymbian_ua_guiApplication symbian_ua_guiApplication.h + * @brief A CAknApplication-derived class is required by the S60 application + * framework. It is subclassed to create the application's document + * object. + */ +class Csymbian_ua_guiApplication : public CAknApplication + { +private: + TUid AppDllUid() const; + CApaDocument* CreateDocumentL(); + + }; + +#endif // SYMBIAN_UA_GUIAPPLICATION_H diff --git a/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiContainer.h b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiContainer.h new file mode 100644 index 0000000..0b6a847 --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiContainer.h @@ -0,0 +1,123 @@ +/* $Id: symbian_ua_guiContainer.h 3550 2011-05-05 05:33:27Z nanang $ */ +/* + * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) + * + * 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 2 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, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef SYMBIAN_UA_GUICONTAINER_H +#define SYMBIAN_UA_GUICONTAINER_H + +// [[[ begin generated region: do not modify [Generated Includes] +#include <coecntrl.h> +// ]]] end generated region [Generated Includes] + + +// [[[ begin [Event Handler Includes] +// ]]] end [Event Handler Includes] + +// [[[ begin generated region: do not modify [Generated Forward Declarations] +class MEikCommandObserver; +class CEikLabel; +class CEikEdwin; +// ]]] end generated region [Generated Forward Declarations] + +/** + * Container class for symbian_ua_guiContainer + * + * @class CSymbian_ua_guiContainer symbian_ua_guiContainer.h + */ +class CSymbian_ua_guiContainer : public CCoeControl + { +public: + // constructors and destructor + CSymbian_ua_guiContainer(); + static CSymbian_ua_guiContainer* NewL( + const TRect& aRect, + const CCoeControl* aParent, + MEikCommandObserver* aCommandObserver ); + static CSymbian_ua_guiContainer* NewLC( + const TRect& aRect, + const CCoeControl* aParent, + MEikCommandObserver* aCommandObserver ); + void ConstructL( + const TRect& aRect, + const CCoeControl* aParent, + MEikCommandObserver* aCommandObserver ); + virtual ~CSymbian_ua_guiContainer(); + +public: + // from base class CCoeControl + TInt CountComponentControls() const; + CCoeControl* ComponentControl( TInt aIndex ) const; + TKeyResponse OfferKeyEventL( + const TKeyEvent& aKeyEvent, + TEventCode aType ); + void HandleResourceChange( TInt aType ); + +protected: + // from base class CCoeControl + void SizeChanged(); + +private: + // from base class CCoeControl + void Draw( const TRect& aRect ) const; + +private: + void InitializeControlsL(); + void LayoutControls(); + CCoeControl* iFocusControl; + MEikCommandObserver* iCommandObserver; + // [[[ begin generated region: do not modify [Generated Methods] +public: + // ]]] end generated region [Generated Methods] + + // [[[ begin generated region: do not modify [Generated Type Declarations] +public: + // ]]] end generated region [Generated Type Declarations] + + // [[[ begin generated region: do not modify [Generated Instance Variables] +private: + CEikLabel* iLabel1; + CEikEdwin* iEd_url; + CEikEdwin* iEd_info; + // ]]] end generated region [Generated Instance Variables] + + + // [[[ begin [Overridden Methods] +protected: + // ]]] end [Overridden Methods] + + + // [[[ begin [User Handlers] +protected: + // ]]] end [User Handlers] + +public: + enum TControls + { + // [[[ begin generated region: do not modify [Generated Contents] + ELabel1, + EEd_url, + EEd_info, + + // ]]] end generated region [Generated Contents] + + // add any user-defined entries here... + + ELastControl + }; + }; + +#endif // SYMBIAN_UA_GUICONTAINER_H diff --git a/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiContainer.hrh b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiContainer.hrh new file mode 100644 index 0000000..1ad366f --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiContainer.hrh @@ -0,0 +1,17 @@ +/*
+========================================================================
+ Name : symbian_ua_guiContainer.hrh
+ Author : nanang
+ Copyright : (c) PJSIP 2008
+ Description :
+========================================================================
+*/
+enum TSymbian_ua_guiContainerViewCommands
+ {
+ ESymbian_ua_guiContainerViewControlPaneRightId = 0x6000,
+ ESymbian_ua_guiContainerViewSettingMenuItemCommand
+ };
+enum TSymbian_ua_guiContainerViewControls
+ {
+ ESymbian_ua_guiContainerViewQry_accept_call = 1
+ };
diff --git a/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiContainerView.h b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiContainerView.h new file mode 100644 index 0000000..4e9e8a5 --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiContainerView.h @@ -0,0 +1,98 @@ +/* $Id: symbian_ua_guiContainerView.h 3550 2011-05-05 05:33:27Z nanang $ */ +/* + * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) + * + * 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 2 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, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef SYMBIAN_UA_GUICONTAINERVIEW_H +#define SYMBIAN_UA_GUICONTAINERVIEW_H + +// [[[ begin generated region: do not modify [Generated Includes] +#include <aknview.h> +// ]]] end generated region [Generated Includes] + + +// [[[ begin [Event Handler Includes] +// ]]] end [Event Handler Includes] + +// [[[ begin generated region: do not modify [Generated Forward Declarations] +class CSymbian_ua_guiContainer; +// ]]] end generated region [Generated Forward Declarations] + +// [[[ begin generated region: do not modify [Generated Constants] +// ]]] end generated region [Generated Constants] + +/** + * Avkon view class for symbian_ua_guiContainerView. It is register with the view server + * by the AppUi. It owns the container control. + * @class Csymbian_ua_guiContainerView symbian_ua_guiContainerView.h + */ +class Csymbian_ua_guiContainerView : public CAknView + { +public: + // constructors and destructor + Csymbian_ua_guiContainerView(); + static Csymbian_ua_guiContainerView* NewL(); + static Csymbian_ua_guiContainerView* NewLC(); + void ConstructL(); + virtual ~Csymbian_ua_guiContainerView(); + +public: + // from base class CAknView + TUid Id() const; + void HandleCommandL( TInt aCommand ); + + void PutMessage(const TDesC &msg); + +protected: + // from base class CAknView + void DoActivateL( + const TVwsViewId& aPrevViewId, + TUid aCustomMessageId, + const TDesC8& aCustomMessage ); + void DoDeactivate(); + void HandleStatusPaneSizeChange(); + +private: + void SetupStatusPaneL(); + void CleanupStatusPane(); + // [[[ begin generated region: do not modify [Generated Methods] +public: + static void RunNote_errorL( const TDesC* aOverrideText = NULL ); + static void RunNote_infoL( const TDesC* aOverrideText = NULL ); + static void RunNote_warningL( const TDesC* aOverrideText = NULL ); + static TInt RunQry_accept_callL( const TDesC* aOverrideText = NULL ); + // ]]] end generated region [Generated Methods] + + + // [[[ begin [Overridden Methods] +protected: + // ]]] end [Overridden Methods] + + + // [[[ begin [User Handlers] +protected: + TBool CallSoftKeyPressedL( TInt aCommand ); + TBool HandleSettingMenuItemSelectedL( TInt aCommand ); + // ]]] end [User Handlers] + + // [[[ begin generated region: do not modify [Generated Instance Variables] +private: + CSymbian_ua_guiContainer* iSymbian_ua_guiContainer; + // ]]] end generated region [Generated Instance Variables] + + }; + +#endif // SYMBIAN_UA_GUICONTAINERVIEW_H diff --git a/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiDocument.h b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiDocument.h new file mode 100644 index 0000000..52fd529 --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiDocument.h @@ -0,0 +1,46 @@ +/* $Id: symbian_ua_guiDocument.h 3550 2011-05-05 05:33:27Z nanang $ */ +/* + * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) + * + * 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 2 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, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef SYMBIAN_UA_GUIDOCUMENT_H +#define SYMBIAN_UA_GUIDOCUMENT_H + +#include <akndoc.h> + +class CEikAppUi; + +/** +* @class Csymbian_ua_guiDocument symbian_ua_guiDocument.h +* @brief A CAknDocument-derived class is required by the S60 application +* framework. It is responsible for creating the AppUi object. +*/ +class Csymbian_ua_guiDocument : public CAknDocument + { +public: + // constructor + static Csymbian_ua_guiDocument* NewL( CEikApplication& aApp ); + +private: + // constructors + Csymbian_ua_guiDocument( CEikApplication& aApp ); + void ConstructL(); + +public: + // from base class CEikDocument + CEikAppUi* CreateAppUiL(); + }; +#endif // SYMBIAN_UA_GUIDOCUMENT_H diff --git a/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiSettingItemList.h b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiSettingItemList.h new file mode 100644 index 0000000..880b033 --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiSettingItemList.h @@ -0,0 +1,97 @@ +/* $Id: symbian_ua_guiSettingItemList.h 3550 2011-05-05 05:33:27Z nanang $ */ +/* + * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) + * + * 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 2 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, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef SYMBIAN_UA_GUISETTINGITEMLIST_H +#define SYMBIAN_UA_GUISETTINGITEMLIST_H + +// [[[ begin generated region: do not modify [Generated Includes] +#include <aknsettingitemlist.h> +// ]]] end generated region [Generated Includes] + + +// [[[ begin [Event Handler Includes] +// ]]] end [Event Handler Includes] + +// [[[ begin generated region: do not modify [Generated Forward Declarations] +class MEikCommandObserver; +class TSymbian_ua_guiSettingItemListSettings; +// ]]] end generated region [Generated Forward Declarations] + +/** + * @class CSymbian_ua_guiSettingItemList symbian_ua_guiSettingItemList.h + */ +class CSymbian_ua_guiSettingItemList : public CAknSettingItemList + { +public: // constructors and destructor + + CSymbian_ua_guiSettingItemList( + TSymbian_ua_guiSettingItemListSettings& settings, + MEikCommandObserver* aCommandObserver ); + virtual ~CSymbian_ua_guiSettingItemList(); + +public: + + // from CCoeControl + void HandleResourceChange( TInt aType ); + + // overrides of CAknSettingItemList + CAknSettingItem* CreateSettingItemL( TInt id ); + void EditItemL( TInt aIndex, TBool aCalledFromMenu ); + TKeyResponse OfferKeyEventL( + const TKeyEvent& aKeyEvent, + TEventCode aType ); + +public: + // utility function for menu + void ChangeSelectedItemL(); + + void LoadSettingValuesL(); + void SaveSettingValuesL(); + +private: + // override of CAknSettingItemList + void SizeChanged(); + +private: + // current settings values + TSymbian_ua_guiSettingItemListSettings& iSettings; + MEikCommandObserver* iCommandObserver; + // [[[ begin generated region: do not modify [Generated Methods] +public: + // ]]] end generated region [Generated Methods] + + // [[[ begin generated region: do not modify [Generated Type Declarations] +public: + // ]]] end generated region [Generated Type Declarations] + + // [[[ begin generated region: do not modify [Generated Instance Variables] +private: + // ]]] end generated region [Generated Instance Variables] + + + // [[[ begin [Overridden Methods] +protected: + // ]]] end [Overridden Methods] + + + // [[[ begin [User Handlers] +protected: + // ]]] end [User Handlers] + + }; +#endif // SYMBIAN_UA_GUISETTINGITEMLIST_H diff --git a/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiSettingItemList.hrh b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiSettingItemList.hrh new file mode 100644 index 0000000..e9b4de4 --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiSettingItemList.hrh @@ -0,0 +1,22 @@ +/*
+========================================================================
+ Name : symbian_ua_guiSettingItemList.hrh
+ Author : nanang
+ Copyright : (c) PJSIP 2008
+ Description :
+========================================================================
+*/
+enum TSymbian_ua_guiSettingItemListViewCommands
+ {
+ ESymbian_ua_guiSettingItemListViewMenuItem1Command = 0x6000,
+ ESymbian_ua_guiSettingItemListViewSave_SettingsMenuItemCommand
+ };
+enum TSymbian_ua_guiSettingItemListViewSave_SettingsItems
+ {
+ ESymbian_ua_guiSettingItemListViewEd_registrar = 1,
+ ESymbian_ua_guiSettingItemListViewEd_user,
+ ESymbian_ua_guiSettingItemListViewEd_password,
+ ESymbian_ua_guiSettingItemListViewEd_stun_server,
+ ESymbian_ua_guiSettingItemListViewB_srtp,
+ ESymbian_ua_guiSettingItemListViewB_ice
+ };
diff --git a/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiSettingItemListView.h b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiSettingItemListView.h new file mode 100644 index 0000000..681e08c --- /dev/null +++ b/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiSettingItemListView.h @@ -0,0 +1,95 @@ +/* $Id: symbian_ua_guiSettingItemListView.h 3550 2011-05-05 05:33:27Z nanang $ */ +/* + * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) + * + * 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 2 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, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef SYMBIAN_UA_GUISETTINGITEMLISTVIEW_H +#define SYMBIAN_UA_GUISETTINGITEMLISTVIEW_H + +// [[[ begin generated region: do not modify [Generated Includes] +#include <aknview.h> +#include "Symbian_ua_guiSettingItemListSettings.h" +// ]]] end generated region [Generated Includes] + + +// [[[ begin [Event Handler Includes] +// ]]] end [Event Handler Includes] + +// [[[ begin generated region: do not modify [Generated Forward Declarations] +class CSymbian_ua_guiSettingItemList; +// ]]] end generated region [Generated Forward Declarations] + +// [[[ begin generated region: do not modify [Generated Constants] +// ]]] end generated region [Generated Constants] + +/** + * Avkon view class for symbian_ua_guiSettingItemListView. It is register with the view server + * by the AppUi. It owns the container control. + * @class Csymbian_ua_guiSettingItemListView symbian_ua_guiSettingItemListView.h + */ +class Csymbian_ua_guiSettingItemListView : public CAknView + { +public: + // constructors and destructor + Csymbian_ua_guiSettingItemListView(); + static Csymbian_ua_guiSettingItemListView* NewL(); + static Csymbian_ua_guiSettingItemListView* NewLC(); + void ConstructL(); + virtual ~Csymbian_ua_guiSettingItemListView(); + +public: + // from base class CAknView + TUid Id() const; + void HandleCommandL( TInt aCommand ); + +protected: + // from base class CAknView + void DoActivateL( + const TVwsViewId& aPrevViewId, + TUid aCustomMessageId, + const TDesC8& aCustomMessage ); + void DoDeactivate(); + void HandleStatusPaneSizeChange(); + +private: + void SetupStatusPaneL(); + void CleanupStatusPane(); + // [[[ begin generated region: do not modify [Generated Methods] +public: + // ]]] end generated region [Generated Methods] + + + // [[[ begin [Overridden Methods] +protected: + // ]]] end [Overridden Methods] + + + // [[[ begin [User Handlers] +protected: + TBool HandleChangeSelectedSettingItemL( TInt aCommand ); + TBool HandleControlPaneRightSoftKeyPressedL( TInt aCommand ); + TBool HandleCancelMenuItemSelectedL( TInt aCommand ); + // ]]] end [User Handlers] + + // [[[ begin generated region: do not modify [Generated Instance Variables] +private: + CSymbian_ua_guiSettingItemList* iSymbian_ua_guiSettingItemList; + TSymbian_ua_guiSettingItemListSettings* iSettings; + // ]]] end generated region [Generated Instance Variables] + + }; + +#endif // SYMBIAN_UA_GUISETTINGITEMLISTVIEW_H |