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>HasLoggedIn</title>
8  </head>
9  <body>
10<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/friends/Overview.html">friends</a>::<a href="../../../nn/friends/CTR/Overview.html">CTR</a>::HasLoggedIn</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14bool HasLoggedIn();
15</pre>
16    </div>
17<h2>Parameters</h2>
18    <div class="section">
19<p>None.</p>
20    </div>
21<h2>Return Values</h2>
22<div class="section">Returns <CODE>true</CODE> if the local application is logged in; otherwise, returns <CODE>false</CODE>. The local host is definitely logged in if this function returns <CODE>true</CODE>, but is not necessarily offline if this function returns <CODE>false</CODE>. THis is because it may return <CODE>false</CODE> even if the system has sent a login request.<br /> <br />
23      <table class="arguments">
24        <thead>
25          <tr>
26<th>Value</th>
27<td>Description</td>
28          </tr>
29        </thead>
30        <tr>
31<th><CODE>true</CODE></th>
32<td>The local application is logged into the friend server.</td>
33        </tr>
34        <tr>
35<th><CODE>false</CODE></th>
36<td>The local application is not logged into the friend server.</td>
37        </tr>
38      </table> </div>
39<h2>Description</h2>
40    <div class="section">
41<p>Checks the login status of the local application.</p><p>Checks if the local application is currently online after calling the <CODE><a href="../../../nn/friends/CTR/Login.html">nn::friends::CTR::Login</a></CODE> function.</p><!-- write here --></div>
42<h2>Revision History</h2>
43    <div class="section">
44      <dl class="history">
45        <dt>2011/03/11</dt>
46<dd>Explained that the returned login status is limited to the requests sent by the application.<br />Added specific examples of return values.<br />
47        </dd>
48        <dt>2010/08/16</dt>
49<dd>Initial version.<br />
50        </dd>
51      </dl>
52    </div>
53  <hr><p>CONFIDENTIAL</p></body>
54</html>
55