blob: dbfacb5a5b76d39289e3c9bebc4379a73741238c [file] [log] [blame]
Alexandre Savard2b370f02012-09-06 16:06:01 -04001/*
alision5cfc35d2013-07-11 15:11:39 -04002 * Copyright (C) 2004-2013 Savoir-Faire Linux Inc.
Alexandre Savard2b370f02012-09-06 16:06:01 -04003 *
4 * Author: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
alision5cfc35d2013-07-11 15:11:39 -04005 * Alexandre Lision <alexandre.lision@savoirfairelinux.com>
Alexandre Savard2b370f02012-09-06 16:06:01 -04006 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 *
21 * Additional permission under GNU GPL version 3 section 7:
22 *
23 * If you modify this program, or any covered work, by linking or
24 * combining it with the OpenSSL project's OpenSSL library (or a
25 * modified version of that library), containing parts covered by the
26 * terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
27 * grants you additional permission to convey the resulting work.
28 * Corresponding Source for a non-source form of such a combination
29 * shall include the source code for the parts of OpenSSL used as well
30 * as that of the covered work.
31 */
32
Alexandre Lision064e1e02013-10-01 16:18:42 -040033package org.sflphone.fragments;
alisionf76de3b2013-04-16 15:35:22 -040034
Alexandre Lision4cf78702013-10-16 13:43:23 -040035import java.io.File;
alisionf76de3b2013-04-16 15:35:22 -040036import java.util.ArrayList;
Alexandre Savard2b370f02012-09-06 16:06:01 -040037
Alexandre Lision064e1e02013-10-01 16:18:42 -040038import org.sflphone.R;
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040039import org.sflphone.client.AccountEditionActivity;
Alexandre Lision064e1e02013-10-01 16:18:42 -040040import org.sflphone.client.AccountWizard;
Alexandre Lision3ccccf02013-10-07 14:10:46 -040041import org.sflphone.interfaces.AccountsInterface;
42import org.sflphone.loaders.AccountsLoader;
43import org.sflphone.loaders.LoaderConstants;
Alexandre Lision064e1e02013-10-01 16:18:42 -040044import org.sflphone.model.Account;
Alexandre Lision3ccccf02013-10-07 14:10:46 -040045import org.sflphone.receivers.AccountsReceiver;
Alexandre Lision064e1e02013-10-01 16:18:42 -040046import org.sflphone.service.ConfigurationManagerCallback;
47import org.sflphone.service.ISipService;
Alexandre Lision7f0bba52013-10-16 14:43:11 -040048import org.sflphone.views.dragsortlv.DragSortListView;
Alexandre Lision064e1e02013-10-01 16:18:42 -040049
Alexandre Savard9a93f062012-09-11 10:42:43 -040050import android.app.Activity;
Alexandre Lision3ccccf02013-10-07 14:10:46 -040051import android.app.ListFragment;
52import android.app.LoaderManager.LoaderCallbacks;
Alexandre Savardae992932012-10-17 10:26:12 -040053import android.content.Context;
Alexandre Savard53d2ddd2012-09-30 22:04:40 -040054import android.content.Intent;
Alexandre Savard4f11d7a2012-10-18 13:15:36 -040055import android.content.IntentFilter;
Alexandre Lision3ccccf02013-10-07 14:10:46 -040056import android.content.Loader;
alisionf76de3b2013-04-16 15:35:22 -040057import android.os.Bundle;
58import android.os.RemoteException;
Alexandre Savard2b370f02012-09-06 16:06:01 -040059import android.util.Log;
Alexandre Lision3ccccf02013-10-07 14:10:46 -040060import android.view.LayoutInflater;
Alexandre Lisiona764c682013-09-09 10:02:07 -040061import android.view.Menu;
62import android.view.MenuInflater;
63import android.view.MenuItem;
Alexandre Lision3ccccf02013-10-07 14:10:46 -040064import android.view.View;
Alexandre Lision059da9d2013-10-22 11:17:25 -040065import android.view.View.OnClickListener;
Alexandre Lision3ccccf02013-10-07 14:10:46 -040066import android.view.ViewGroup;
67import android.widget.AdapterView;
68import android.widget.AdapterView.OnItemClickListener;
69import android.widget.BaseAdapter;
70import android.widget.CheckBox;
Alexandre Lision230d66e2013-10-22 12:32:12 -040071import android.widget.ListView;
Alexandre Lision3ccccf02013-10-07 14:10:46 -040072import android.widget.TextView;
Alexandre Savard2b370f02012-09-06 16:06:01 -040073
Alexandre Lisiond2e9e062013-10-21 16:27:33 -040074public class AccountManagementFragment extends ListFragment implements LoaderCallbacks<Bundle>, AccountsInterface {
Alexandre Savard2b370f02012-09-06 16:06:01 -040075 static final String TAG = "AccountManagementFragment";
Alexandre Savarda6c0d992012-09-28 09:24:13 -040076 static final String DEFAULT_ACCOUNT_ID = "IP2IP";
Alexandre Savard53d2ddd2012-09-30 22:04:40 -040077 static final int ACCOUNT_CREATE_REQUEST = 1;
Alexandre Savard68838112012-10-30 11:34:43 -040078 static final int ACCOUNT_EDIT_REQUEST = 2;
Alexandre Lision3ccccf02013-10-07 14:10:46 -040079 AccountsReceiver accountReceiver;
Alexandre Lision230d66e2013-10-22 12:32:12 -040080 AccountsAdapter mAccountsAdapter;
81 AccountsAdapter mIP2IPAdapter;
Alexandre Lision4cf78702013-10-16 13:43:23 -040082 private DragSortListView.DropListener onDrop = new DragSortListView.DropListener() {
83 @Override
84 public void drop(int from, int to) {
85 if (from != to) {
Alexandre Lision230d66e2013-10-22 12:32:12 -040086 Account item = mAccountsAdapter.getItem(from);
87 mAccountsAdapter.remove(item);
88 mAccountsAdapter.insert(item, to);
Alexandre Lision4cf78702013-10-16 13:43:23 -040089 try {
Alexandre Lision230d66e2013-10-22 12:32:12 -040090 mCallbacks.getService().setAccountOrder(mAccountsAdapter.generateAccountOrder());
Alexandre Lision4cf78702013-10-16 13:43:23 -040091 } catch (RemoteException e) {
92 e.printStackTrace();
93 }
94 }
95 }
96
Alexandre Lision4cf78702013-10-16 13:43:23 -040097 };
98
Alexandre Lision3ccccf02013-10-07 14:10:46 -040099 private Callbacks mCallbacks = sDummyCallbacks;
Alexandre Lision059da9d2013-10-22 11:17:25 -0400100 private Account ip2ip;
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400101 private static Callbacks sDummyCallbacks = new Callbacks() {
102
103 @Override
104 public ISipService getService() {
105 return null;
106 }
107 };
108
109 public interface Callbacks {
110
111 public ISipService getService();
112
113 }
Alexandre Savardae992932012-10-17 10:26:12 -0400114
Emeric Vigier1f1ced32012-11-02 16:56:32 -0400115 @Override
116 public void onAttach(Activity activity) {
117 super.onAttach(activity);
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400118 if (!(activity instanceof Callbacks)) {
119 throw new IllegalStateException("Activity must implement fragment's callbacks.");
120 }
121
122 mCallbacks = (Callbacks) activity;
Alexandre Lision059da9d2013-10-22 11:17:25 -0400123 getActivity().getLoaderManager().restartLoader(LoaderConstants.ACCOUNTS_LOADER, null, this);
Emeric Vigier1f1ced32012-11-02 16:56:32 -0400124 }
Alexandre Savard12dc3ac2012-09-27 11:17:39 -0400125
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400126 @Override
127 public void onDetach() {
128 super.onDetach();
129 mCallbacks = sDummyCallbacks;
alisiond9e29442013-04-17 16:10:18 -0400130 }
Alexandre Savard2b370f02012-09-06 16:06:01 -0400131
132 @Override
alisiond9e29442013-04-17 16:10:18 -0400133 public void onCreate(Bundle savedInstanceState) {
Alexandre Savard2b370f02012-09-06 16:06:01 -0400134 super.onCreate(savedInstanceState);
135
Alexandre Savard9a93f062012-09-11 10:42:43 -0400136 Log.i(TAG, "Create Account Management Fragment");
Alexandre Lision230d66e2013-10-22 12:32:12 -0400137 mAccountsAdapter = new AccountsAdapter(getActivity(), new ArrayList<Account>());
138 mIP2IPAdapter = new AccountsAdapter(getActivity(), new ArrayList<Account>());
Alexandre Lisiona764c682013-09-09 10:02:07 -0400139 this.setHasOptionsMenu(true);
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400140 accountReceiver = new AccountsReceiver(this);
Alexandre Lisiond16bad92013-10-09 17:16:20 -0400141
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400142 }
Alexandre Lisiona764c682013-09-09 10:02:07 -0400143
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400144 @Override
145 public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {
Alexandre Lision4cf78702013-10-16 13:43:23 -0400146 View inflatedView = inflater.inflate(R.layout.frag_accounts_list, parent, false);
Alexandre Lision230d66e2013-10-22 12:32:12 -0400147 setListAdapter(mAccountsAdapter);
Alexandre Lision4cf78702013-10-16 13:43:23 -0400148
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400149 return inflatedView;
150 }
151
152 @Override
Alexandre Lision4cf78702013-10-16 13:43:23 -0400153 public DragSortListView getListView() {
154 return (DragSortListView) super.getListView();
155 }
156
157 @Override
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400158 public void onViewCreated(View view, Bundle savedInstanceState) {
159 super.onViewCreated(view, savedInstanceState);
Alexandre Lision4cf78702013-10-16 13:43:23 -0400160
161 DragSortListView list = getListView();
162 list.setDropListener(onDrop);
163 list.setOnItemClickListener(new OnItemClickListener() {
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400164
165 @Override
166 public void onItemClick(AdapterView<?> arg0, View arg1, int pos, long arg3) {
Alexandre Lision230d66e2013-10-22 12:32:12 -0400167 launchAccountEditActivity(mAccountsAdapter.getItem(pos));
Emeric Vigier0038a612012-11-06 18:51:19 -0500168 }
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400169 });
Alexandre Lision230d66e2013-10-22 12:32:12 -0400170
171 ((ListView) getView().findViewById(R.id.ip2ip)).setAdapter(mIP2IPAdapter);
172 ((ListView) getView().findViewById(R.id.ip2ip)).setOnItemClickListener(new OnItemClickListener() {
173
Alexandre Lision059da9d2013-10-22 11:17:25 -0400174 @Override
Alexandre Lision230d66e2013-10-22 12:32:12 -0400175 public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
Alexandre Lision059da9d2013-10-22 11:17:25 -0400176 launchAccountEditActivity(ip2ip);
Alexandre Lision230d66e2013-10-22 12:32:12 -0400177
Alexandre Lision059da9d2013-10-22 11:17:25 -0400178 }
179 });
Alexandre Lision40954dc2013-10-09 15:24:03 -0400180
Alexandre Lisiond2e9e062013-10-21 16:27:33 -0400181 list.setEmptyView(view.findViewById(android.R.id.empty));
Alexandre Savard2b370f02012-09-06 16:06:01 -0400182 }
183
Alexandre Savard8b7d4332012-09-30 20:02:11 -0400184 @Override
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400185 public void onPause() {
186 super.onPause();
187 getActivity().unregisterReceiver(accountReceiver);
Alexandre Savard8b7d4332012-09-30 20:02:11 -0400188 }
189
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400190 public void onResume() {
191 super.onResume();
192 IntentFilter intentFilter2 = new IntentFilter();
193 intentFilter2.addAction(ConfigurationManagerCallback.ACCOUNT_STATE_CHANGED);
194 intentFilter2.addAction(ConfigurationManagerCallback.ACCOUNTS_CHANGED);
195 getActivity().registerReceiver(accountReceiver, intentFilter2);
Alexandre Lisiond16bad92013-10-09 17:16:20 -0400196 getActivity().getLoaderManager().restartLoader(LoaderConstants.ACCOUNTS_LOADER, null, this);
Alexandre Lision4cf78702013-10-16 13:43:23 -0400197
alisiona4325152013-04-19 11:10:03 -0400198 }
alision73424b62013-04-26 11:49:18 -0400199
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400200 @Override
Alexandre Lisiond2e9e062013-10-21 16:27:33 -0400201 public Loader<Bundle> onCreateLoader(int id, Bundle args) {
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400202 AccountsLoader l = new AccountsLoader(getActivity(), mCallbacks.getService());
Alexandre Lision4cf78702013-10-16 13:43:23 -0400203
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400204 l.forceLoad();
Alexandre Lision059da9d2013-10-22 11:17:25 -0400205
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400206 return l;
207 }
208
209 @Override
Alexandre Lision059da9d2013-10-22 11:17:25 -0400210 public void onLoadFinished(Loader<Bundle> loader, Bundle results) {
Alexandre Lision230d66e2013-10-22 12:32:12 -0400211 mAccountsAdapter.removeAll();
Alexandre Lision059da9d2013-10-22 11:17:25 -0400212 ArrayList<Account> tmp = results.getParcelableArrayList(AccountsLoader.ACCOUNTS);
213 ip2ip = results.getParcelable(AccountsLoader.ACCOUNT_IP2IP);
Alexandre Lision230d66e2013-10-22 12:32:12 -0400214 mAccountsAdapter.addAll(tmp);
215 mIP2IPAdapter.removeAll();
216 mIP2IPAdapter.insert(ip2ip, 0);;
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400217 }
218
219 @Override
Alexandre Lisiond2e9e062013-10-21 16:27:33 -0400220 public void onLoaderReset(Loader<Bundle> arg0) {
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400221 // TODO Auto-generated method stub
222
223 }
224
Alexandre Lisiona764c682013-09-09 10:02:07 -0400225 @Override
226 public void onCreateOptionsMenu(Menu m, MenuInflater inf) {
227 super.onCreateOptionsMenu(m, inf);
228 inf.inflate(R.menu.account_creation, m);
229 }
230
231 @Override
232 public boolean onOptionsItemSelected(MenuItem item) {
233 super.onOptionsItemSelected(item);
234 switch (item.getItemId()) {
235 case R.id.menuitem_create:
236 Intent intent = new Intent().setClass(getActivity(), AccountWizard.class);
237 startActivityForResult(intent, ACCOUNT_CREATE_REQUEST);
238 break;
239 }
240
241 return true;
242 }
243
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400244 private void launchAccountEditActivity(Account acc) {
Alexandre Savard68838112012-10-30 11:34:43 -0400245 Log.i(TAG, "Launch account edit activity");
Alexandre Savard833616f2012-10-30 16:02:30 -0400246
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400247 Intent intent = new Intent().setClass(getActivity(), AccountEditionActivity.class);
248 Bundle bundle = new Bundle();
Alexandre Lisiond2e9e062013-10-21 16:27:33 -0400249 bundle.putParcelable("account", acc);
Alexandre Lision059da9d2013-10-22 11:17:25 -0400250
Alexandre Savard833616f2012-10-30 16:02:30 -0400251 intent.putExtras(bundle);
252
Alexandre Savard68838112012-10-30 11:34:43 -0400253 startActivityForResult(intent, ACCOUNT_EDIT_REQUEST);
254 }
255
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400256 @Override
257 public void accountsChanged() {
258 if (getActivity() != null)
259 getActivity().getLoaderManager().restartLoader(LoaderConstants.ACCOUNTS_LOADER, null, this);
Alexandre Savard52a72522012-09-27 16:40:13 -0400260 }
261
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400262 @Override
263 public void accountStateChanged(Intent accountState) {
Alexandre Lision230d66e2013-10-22 12:32:12 -0400264 mAccountsAdapter.updateAccount(accountState);
Alexandre Savard9a93f062012-09-11 10:42:43 -0400265 }
266
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400267 /**
268 *
269 * Adapter for accounts List
Alexandre Lision40954dc2013-10-09 15:24:03 -0400270 *
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400271 * @author lisional
Alexandre Lision40954dc2013-10-09 15:24:03 -0400272 *
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400273 */
274 public class AccountsAdapter extends BaseAdapter {
Alexandre Savard52a72522012-09-27 16:40:13 -0400275
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400276 // private static final String TAG = AccountSelectionAdapter.class.getSimpleName();
Alexandre Savard70982012012-09-27 17:15:50 -0400277
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400278 ArrayList<Account> accounts;
279 Context mContext;
Alexandre Savard70982012012-09-27 17:15:50 -0400280
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400281 public AccountsAdapter(Context cont, ArrayList<Account> newList) {
282 super();
283 accounts = newList;
284 mContext = cont;
Alexandre Savarde990d052012-10-18 14:43:09 -0400285 }
alisiond9e29442013-04-17 16:10:18 -0400286
Alexandre Lision4cf78702013-10-16 13:43:23 -0400287 public void insert(Account item, int to) {
288 accounts.add(to, item);
289 notifyDataSetChanged();
290 }
291
292 public void remove(Account item) {
293 accounts.remove(item);
294 notifyDataSetChanged();
295 }
Alexandre Lisiond2e9e062013-10-21 16:27:33 -0400296
Alexandre Lision4cf78702013-10-16 13:43:23 -0400297 @Override
Alexandre Lisiond2e9e062013-10-21 16:27:33 -0400298 public boolean hasStableIds() {
Alexandre Lision4cf78702013-10-16 13:43:23 -0400299 return true;
300 }
301
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400302 @Override
303 public int getCount() {
304 return accounts.size();
305 }
Alexandre Savard70982012012-09-27 17:15:50 -0400306
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400307 @Override
308 public Account getItem(int pos) {
309 return accounts.get(pos);
310 }
Alexandre Savard68838112012-10-30 11:34:43 -0400311
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400312 @Override
313 public long getItemId(int pos) {
314 return 0;
315 }
Alexandre Savard68838112012-10-30 11:34:43 -0400316
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400317 @Override
318 public View getView(final int pos, View convertView, ViewGroup parent) {
319 View rowView = convertView;
320 AccountView entryView = null;
Alexandre Savard68838112012-10-30 11:34:43 -0400321
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400322 if (rowView == null) {
323 LayoutInflater inflater = LayoutInflater.from(mContext);
324 rowView = inflater.inflate(R.layout.item_account_pref, null);
alisiond9e29442013-04-17 16:10:18 -0400325
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400326 entryView = new AccountView();
327 entryView.alias = (TextView) rowView.findViewById(R.id.account_alias);
328 entryView.host = (TextView) rowView.findViewById(R.id.account_host);
329 entryView.enabled = (CheckBox) rowView.findViewById(R.id.account_checked);
330 rowView.setTag(entryView);
331 } else {
332 entryView = (AccountView) rowView.getTag();
333 }
334
Alexandre Lision059da9d2013-10-22 11:17:25 -0400335 final Account item = accounts.get(pos);
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400336 entryView.alias.setText(accounts.get(pos).getAlias());
Alexandre Lision230d66e2013-10-22 12:32:12 -0400337 if(item.isIP2IP()){
338 entryView.host.setText(item.getRegistered_state());
339 entryView.enabled.setVisibility(View.GONE);
340 } else {
341 entryView.host.setText(item.getHost() + " - " + item.getRegistered_state());
342 entryView.enabled.setChecked(item.isEnabled());
343 entryView.enabled.setOnClickListener(new OnClickListener() {
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400344
Alexandre Lision230d66e2013-10-22 12:32:12 -0400345 @Override
346 public void onClick(View v) {
347 item.setEnabled(!item.isEnabled());
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400348
Alexandre Lision230d66e2013-10-22 12:32:12 -0400349 try {
350 mCallbacks.getService().setAccountDetails(item.getAccountID(), item.getDetails());
351 } catch (RemoteException e) {
352 e.printStackTrace();
353 }
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400354 }
Alexandre Lision230d66e2013-10-22 12:32:12 -0400355 });
356 }
357
358
359
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400360
361 return rowView;
362 }
363
364 /*********************
365 * ViewHolder Pattern
366 *********************/
367 public class AccountView {
368 public TextView alias;
369 public TextView host;
370 public CheckBox enabled;
371 }
372
373 public void removeAll() {
374 accounts.clear();
375 notifyDataSetChanged();
376
377 }
378
379 public void addAll(ArrayList<Account> results) {
380 accounts.addAll(results);
381 notifyDataSetChanged();
382 }
383
384 /**
385 * Modify state of specific account
386 *
387 * @param accountState
388 */
389 public void updateAccount(Intent accountState) {
390 Log.i(TAG, "updateAccount");
391 String id = accountState.getStringExtra("Account");
392 String newState = accountState.getStringExtra("state");
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400393
394 for (Account a : accounts) {
395 if (a.getAccountID().contentEquals(id)) {
396 a.setRegistered_state(newState);
397 notifyDataSetChanged();
398 return;
399 }
400 }
401
402 }
Alexandre Lisiond2e9e062013-10-21 16:27:33 -0400403
Alexandre Lision4cf78702013-10-16 13:43:23 -0400404 private String generateAccountOrder() {
405 String result = DEFAULT_ACCOUNT_ID + File.separator;
406 for (Account a : accounts) {
407 result += a.getAccountID() + File.separator;
408 }
409 return result;
410 }
Alexandre Lision3ccccf02013-10-07 14:10:46 -0400411
Alexandre Savard68838112012-10-30 11:34:43 -0400412 }
Alexandre Savard2b370f02012-09-06 16:06:01 -0400413}