hotspotfw/hsbrowser/inc/hsbrowsermodel.inl
branchRCL_3
changeset 25 f28ada11abbf
parent 0 56b72877c1cb
equal deleted inserted replaced
24:63be7eb3fc78 25:f28ada11abbf
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Inline method definitions for CHsBrowserModel.   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef HSBROWSERMODEL_INL
       
    21 #define HSBROWSERMODEL_INL
       
    22 
       
    23 // ================= MEMBER FUNCTIONS =======================
       
    24 
       
    25 // ---------------------------------------------------------
       
    26 // CHsBrowserModel::IapId
       
    27 // ---------------------------------------------------------
       
    28 //
       
    29 TInt CHsBrowserModel::IapId() const
       
    30     {
       
    31     return iIapId;	
       
    32     }
       
    33 
       
    34 // ---------------------------------------------------------
       
    35 // CHsBrowserModel::SetIapId
       
    36 // ---------------------------------------------------------
       
    37 //
       
    38 void CHsBrowserModel::SetIapId( TInt aIapId )
       
    39     {
       
    40     iIapId = aIapId;	
       
    41     }
       
    42 
       
    43 // ---------------------------------------------------------
       
    44 // CHsBrowserModel::IapId
       
    45 // ---------------------------------------------------------
       
    46 //
       
    47 TInt CHsBrowserModel::NetId() const
       
    48     {
       
    49     return iNetId;	
       
    50     }
       
    51 
       
    52 // ---------------------------------------------------------
       
    53 // CHsBrowserModel::Url
       
    54 // ---------------------------------------------------------
       
    55 //
       
    56 HBufC* CHsBrowserModel::Url()
       
    57 	{
       
    58 	return iUrl;
       
    59 	}
       
    60 
       
    61 // ---------------------------------------------------------
       
    62 // CHsBrowserModel::SetNetId
       
    63 // ---------------------------------------------------------
       
    64 //
       
    65 void CHsBrowserModel::SetNetId( TInt aNetId )
       
    66     {
       
    67     iNetId = aNetId;	
       
    68     }
       
    69 
       
    70 // ---------------------------------------------------------
       
    71 // CHsBrowserModel::Connection
       
    72 // ---------------------------------------------------------
       
    73 //
       
    74 RConnection& CHsBrowserModel::Connection()
       
    75     {
       
    76     return iConnection;	
       
    77     }
       
    78 
       
    79 // ---------------------------------------------------------
       
    80 // CHsBrowserModel::SocketServ
       
    81 // ---------------------------------------------------------
       
    82 //
       
    83 RSocketServ& CHsBrowserModel::SocketServ()
       
    84     {
       
    85     return iSocketServ;	
       
    86     }
       
    87 
       
    88 // ---------------------------------------------------------
       
    89 // CHsBrowserModel::HsServer
       
    90 // ---------------------------------------------------------
       
    91 //
       
    92 RHssInterface& CHsBrowserModel::HsServer()
       
    93 	{
       
    94 	return iHsServer;
       
    95 	}
       
    96 
       
    97 // ---------------------------------------------------------
       
    98 // CHsBrowserModel::SetUrl
       
    99 // ---------------------------------------------------------
       
   100 //
       
   101 void CHsBrowserModel::SetUrl( const TPtrC& aUrl )
       
   102 	{
       
   103 	if ( iUrl )
       
   104 		{
       
   105 		delete iUrl;
       
   106 		iUrl = NULL;
       
   107 		}
       
   108 	iUrl = aUrl.Alloc();
       
   109 	}
       
   110 
       
   111 // ---------------------------------------------------------
       
   112 // CHsBrowserModel::Foreground
       
   113 // ---------------------------------------------------------
       
   114 //
       
   115 TBool CHsBrowserModel::Foreground()
       
   116 	{
       
   117 	return iForeground;
       
   118 	}
       
   119 
       
   120 // ---------------------------------------------------------
       
   121 // CHsBrowserModel::State
       
   122 // ---------------------------------------------------------
       
   123 //
       
   124 TUint CHsBrowserModel::State()
       
   125 	{
       
   126 	return iState;
       
   127 	}
       
   128 	
       
   129 // ---------------------------------------------------------
       
   130 // CHsBrowserModel::ShowLoginCompleteNote
       
   131 // ---------------------------------------------------------
       
   132 //
       
   133 /*TBool CHsBrowserModel::ShowLoginCompleteNote()
       
   134 	{
       
   135 	return iShowLoginCompleteNote;
       
   136 	}
       
   137 */
       
   138 
       
   139 // ---------------------------------------------------------
       
   140 // CHsBrowserModel::LoginCompleteNoteShown
       
   141 // ---------------------------------------------------------
       
   142 //
       
   143 TBool CHsBrowserModel::LoginCompleteNoteShown()
       
   144 	{
       
   145 	return iLoginCompleteNoteShown;
       
   146 	}
       
   147 
       
   148 // ---------------------------------------------------------
       
   149 // CHsBrowserModel::Position
       
   150 // ---------------------------------------------------------
       
   151 //
       
   152 TInt CHsBrowserModel::Position()
       
   153 	{
       
   154 	return iPosition;
       
   155 	}
       
   156 	
       
   157 // ---------------------------------------------------------
       
   158 // CHsBrowserModel::Priority
       
   159 // ---------------------------------------------------------
       
   160 //
       
   161 TInt CHsBrowserModel::Priority()
       
   162 	{
       
   163 	return iPriority;
       
   164 	}
       
   165 
       
   166 HBufC* CHsBrowserModel::StaticTitle()
       
   167 	{
       
   168 	return iStaticTitle;
       
   169 	}
       
   170 
       
   171 HBufC* CHsBrowserModel::PageTitle()
       
   172 	{
       
   173 	return iPageTitle;
       
   174 	}
       
   175 
       
   176 // ---------------------------------------------------------
       
   177 // CHsBrowserModel::ShowConnClosedNote
       
   178 // ---------------------------------------------------------
       
   179 //
       
   180 /*
       
   181 TBool CHsBrowserModel::ShowConnClosedNote()
       
   182 	{
       
   183 	return iShowConnClosedNote;
       
   184 	}
       
   185 */
       
   186 
       
   187 // ---------------------------------------------------------
       
   188 // CHsBrowserModel::SetState
       
   189 // ---------------------------------------------------------
       
   190 //
       
   191 void CHsBrowserModel::SetState( TUint aState )
       
   192 	{
       
   193 	iState = aState;
       
   194 	}
       
   195 
       
   196 // ---------------------------------------------------------
       
   197 // CHsBrowserModel::SetForeground
       
   198 // ---------------------------------------------------------
       
   199 //
       
   200 void CHsBrowserModel::SetForeground( TBool aForeground )
       
   201 	{
       
   202 	iForeground = aForeground;
       
   203 	}
       
   204 
       
   205 // ---------------------------------------------------------
       
   206 // CHsBrowserModel::SetShowLoginCompleteNote
       
   207 // ---------------------------------------------------------
       
   208 //
       
   209 /*void CHsBrowserModel::SetShowLoginCompleteNote( TBool aShowLoginCompleteNote )
       
   210 	{
       
   211 	iShowLoginCompleteNote = aShowLoginCompleteNote;
       
   212 	}
       
   213 */
       
   214 
       
   215 // ---------------------------------------------------------
       
   216 // CHsBrowserModel::SetLoginCompleteNoteShown
       
   217 // ---------------------------------------------------------
       
   218 //
       
   219 void CHsBrowserModel::SetLoginCompleteNoteShown(
       
   220     TBool aLoginCompleteNoteShown )
       
   221 	{
       
   222 	iLoginCompleteNoteShown = aLoginCompleteNoteShown;
       
   223 	}
       
   224 
       
   225 // ---------------------------------------------------------
       
   226 // CHsBrowserModel::SetShowConnClosedNote
       
   227 // ---------------------------------------------------------
       
   228 //
       
   229 /*
       
   230 void CHsBrowserModel::SetShowConnClosedNote( TBool aShowConnClosedNote )
       
   231 	{
       
   232 	iShowConnClosedNote = aShowConnClosedNote;
       
   233 	}        
       
   234 */
       
   235 
       
   236 // ---------------------------------------------------------
       
   237 // CHsBrowserModel::SetStaticTitle
       
   238 // ---------------------------------------------------------
       
   239 //
       
   240 void CHsBrowserModel::SetStaticTitle( const TDesC& aStaticTitle )
       
   241 	{
       
   242 	if ( iStaticTitle )
       
   243 		{
       
   244 		delete iStaticTitle;
       
   245 		iStaticTitle = NULL;
       
   246 		}
       
   247 	iStaticTitle = aStaticTitle.Alloc();
       
   248 	}
       
   249 
       
   250 // ---------------------------------------------------------
       
   251 // CHsBrowserModel::SetPageTitle
       
   252 // ---------------------------------------------------------
       
   253 //        
       
   254 void CHsBrowserModel::SetPageTitle( const TDesC& aPageTitle )
       
   255 	{
       
   256 	if ( iPageTitle )
       
   257 		{
       
   258 		delete iPageTitle;
       
   259 		iPageTitle = NULL;
       
   260 		}
       
   261 	iPageTitle = aPageTitle.Alloc();
       
   262 	}
       
   263 
       
   264 
       
   265 #endif // HSBROWSERMODEL_INL