Files you do not need to edit

This section includes the following files:

inc/stubApplication.h

stubApplication.h is a header file for your stub application. A header file is a small self-sufficient file that includes parameters for compiling the application. Create the following content and save it in the inc directory.

#ifndef __STUB_APPLICATION_H__
#define __STUB_APPLICATION_H__

#include <aknapp.h>
#include <akndoc.h>


class CstubApplication : public CAknApplication
    {
public:

    TUid AppDllUid() const;
    ~CstubApplication();

protected
    CApaDocument* CreateDocumentL();
    RLibrary iFlashLibrary;

    };

#endif

group/stub.rss

stub.rss is a resource source (RSS) file that provides input to the resource compiler. Create the following content and save it in the inc directory.

NAME STUB

#include <eikon.rh>
#include <eikon.rsg>
#include <avkon.rh>
#include <avkon.rsg>

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF r_default_document_name { buf=""; }

RESOURCE EIK_APP_INFO
    {
    menubar = r_stub_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }

RESOURCE MENU_BAR r_stub_menubar
    {
    titles =
        {
        MENU_TITLE {menu_pane = r_stub_menu;}
        };
    }

RESOURCE MENU_PANE r_stub_menu
    {
    items = 
        {
       
        MENU_ITEM {command = EAknSoftkeyExit;   txt = "Exit";}
        };
    }

group/stub_loc.rss

stub_loc.rss is another resource file that defines the way your stub application is presented in the mobile device. This file defines application parameters whose values are set in file stub_loc.rls. Create the following content and save it in the inc directory.

#include <appinfo.rh>
#include "stub_loc.rls"

RESOURCE LOCALISABLE_APP_INFO
	{
	short_caption = STRING_short_caption;
	caption_and_icon =
		{
		CAPTION_AND_ICON_INFO 
			{
			caption=STRING_r_stub_caption;
			number_of_icons=1;
			icon_file=STRING_r_stub_icon_path;
			}
		};
	}