1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7<title>IsExpectedToProcessHomeButton</title>
8  </head>
9  <body>
10<h1><CODE>nn::applet::CTR::IsExpectedToProcessHomeButton</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14bool IsExpectedToProcessHomeButton(
15     void
16);
17</pre>
18    </div>
19<h2>Arguments</h2>
20    <div class="section">
21<p>None.</p>
22    </div>
23<h2>Return Values</h2>
24<div class="section">Returns whether there was a processing request. If <CODE>true</CODE>, the HOME Button must be processed. </div>
25<h2>Description</h2>
26    <div class="section">
27<p>Determines whether there has been a request to process the HOME Button.</p><!-- write here --><P>
28A return value of <CODE>true</CODE> indicates that either the HOME Button was pressed to jump to the HOME Menu, or some other applet made a similar request to jump to the HOME Menu.
29</P><P>
30In such cases, call the <a href="../../../nn/applet/CTR/ProcessHomeButton.html"><CODE>nn::applet::CTR::ProcessHomeButton</CODE></a> to process the HOME Button. Then call <a href="../../../nn/applet/CTR/WaitForStarting.html"><CODE>nn::applet::CTR::WaitForStarting</CODE></a> to wait for starting if required.
31</P><PRE>
32   // HOME Button transition check
33   if ( <FONT color="red">applet::IsExpectedToProcessHomeButton()</FONT> )
34   {
35       _save_my_data();
36       // HOME Button transition process
37       applet::ProcessHomeButton();
38       // Wait
39       applet::WaitForStarting();
40       if ( applet::IsExpectedToCloseApplication() )
41       {
42             _close_application();
43       }
44       _recover_my_data();
45       // Clear HOME Button state
46       applet::ClearHomeButtonState();
47   }
48</PRE></div>
49<h2>Revision History</h2>
50    <div class="section">
51      <dl class="history">
52        <dt>2010/11/10</dt>
53<dd>Initial version.<br />
54        </dd>
55      </dl>
56    </div>
57  <hr><p>CONFIDENTIAL</p></body>
58</html>
59